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[]buffersprivate ByteBufferPoolpool-
Fields inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking
-
-
Constructor Summary
Constructors Modifier Constructor Description privateByteBufferRecyclerCallback(Callback callback, ByteBufferPool pool, java.nio.ByteBuffer... buffers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfailed(java.lang.Throwable x)Callback invoked when the operation fails.voidsucceeded()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:CallbackCallback invoked when the operation completes.
- Specified by:
succeededin interfaceCallback- Overrides:
succeededin classCallback.Nested- See Also:
Callback.failed(Throwable)
-
failed
public void failed(java.lang.Throwable x)
Description copied from interface:CallbackCallback invoked when the operation fails.
- Specified by:
failedin interfaceCallback- Overrides:
failedin classCallback.Nested- Parameters:
x- the reason for the operation failure
-
-