Package org.eclipse.jetty.client.http
Class HttpSenderOverHTTP.ByteBufferRecyclerCallback
- java.lang.Object
-
- org.eclipse.jetty.util.Callback.Completing
-
- org.eclipse.jetty.util.Callback.Nested
-
- org.eclipse.jetty.client.http.HttpSenderOverHTTP.ByteBufferRecyclerCallback
-
- Enclosing class:
- HttpSenderOverHTTP
private class HttpSenderOverHTTP.ByteBufferRecyclerCallback extends Callback.Nested
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Callback
Callback.Completable, Callback.Completing, Callback.Nested
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable
Invocable.InvocationType
-
-
Field Summary
Fields Modifier and Type Field Description private java.nio.ByteBuffer[]
buffers
private ByteBufferPool
pool
-
Fields inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ByteBufferRecyclerCallback(Callback callback, ByteBufferPool pool, java.nio.ByteBuffer... buffers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
failed(java.lang.Throwable x)
Callback invoked when the operation fails.void
succeeded()
Callback invoked when the operation completes.-
Methods inherited from class org.eclipse.jetty.util.Callback.Nested
getCallback, getInvocationType
-
Methods inherited from class org.eclipse.jetty.util.Callback.Completing
completed
-
-
-
-
Field Detail
-
pool
private final ByteBufferPool pool
-
buffers
private final java.nio.ByteBuffer[] buffers
-
-
Constructor Detail
-
ByteBufferRecyclerCallback
private ByteBufferRecyclerCallback(Callback callback, ByteBufferPool pool, java.nio.ByteBuffer... buffers)
-
-
Method Detail
-
succeeded
public void succeeded()
Description copied from interface:Callback
Callback invoked when the operation completes.
- Specified by:
succeeded
in interfaceCallback
- Overrides:
succeeded
in classCallback.Nested
- See Also:
Callback.failed(Throwable)
-
failed
public void failed(java.lang.Throwable x)
Description copied from interface:Callback
Callback invoked when the operation fails.
- Specified by:
failed
in interfaceCallback
- Overrides:
failed
in classCallback.Nested
- Parameters:
x
- the reason for the operation failure
-
-