Package org.eclipse.jetty.server
Class HttpChannel.SendCallback
- java.lang.Object
-
- org.eclipse.jetty.util.Callback.Completing
-
- org.eclipse.jetty.util.Callback.Nested
-
- org.eclipse.jetty.server.HttpChannel.SendCallback
-
- Direct Known Subclasses:
HttpChannel.Send100Callback
- Enclosing class:
- HttpChannel
private class HttpChannel.SendCallback 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
-
-
Constructor Summary
Constructors Modifier Constructor Description privateSendCallback(Callback callback, java.nio.ByteBuffer content, boolean commit, boolean complete)
-
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
-
-
-
-
Constructor Detail
-
SendCallback
private SendCallback(Callback callback, java.nio.ByteBuffer content, boolean commit, boolean complete)
-
-
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
-
-