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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Callback
Callback.Completable, Callback.Completing, Callback.InvocableCallback, Callback.Nested
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable
Invocable.InvocationType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
private final boolean
private final ByteBuffer
private final int
Fields inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
SendCallback
(Callback callback, ByteBuffer content, boolean commit, boolean complete) -
Method Summary
Methods inherited from class org.eclipse.jetty.util.Callback.Nested
getCallback, getInvocationType
Methods inherited from class org.eclipse.jetty.util.Callback.Completing
completed
-
Field Details
-
_content
-
_length
private final int _length -
_commit
private final boolean _commit -
_complete
private final boolean _complete
-
-
Constructor Details
-
SendCallback
-
-
Method Details
-
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:
-
failed
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
-