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 private
SendCallback(Callback callback, java.nio.ByteBuffer content, boolean commit, boolean complete)
-
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
-
-
-
-
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: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
-
-