Package org.eclipse.jetty.server
Class HttpOutput.NestedChannelWriteCB
- java.lang.Object
-
- org.eclipse.jetty.util.IteratingCallback
-
- org.eclipse.jetty.server.HttpOutput.ChannelWriteCB
-
- org.eclipse.jetty.server.HttpOutput.NestedChannelWriteCB
-
- Direct Known Subclasses:
HttpOutput.InputStreamWritingCB
,HttpOutput.ReadableByteChannelWritingCB
- Enclosing class:
- HttpOutput
private abstract class HttpOutput.NestedChannelWriteCB extends HttpOutput.ChannelWriteCB
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.util.IteratingCallback
IteratingCallback.Action
-
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
Fields Modifier and Type Field Description (package private) Callback
_callback
-
Fields inherited from class org.eclipse.jetty.server.HttpOutput.ChannelWriteCB
_last
-
Fields inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking
-
-
Constructor Summary
Constructors Constructor Description NestedChannelWriteCB(Callback callback, boolean last)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onCompleteFailure(java.lang.Throwable e)
Invoked when the overall task has completed with a failure.protected void
onCompleteSuccess()
Invoked when the overall task has completed successfully.-
Methods inherited from class org.eclipse.jetty.server.HttpOutput.ChannelWriteCB
getInvocationType
-
-
-
-
Field Detail
-
_callback
final Callback _callback
-
-
Constructor Detail
-
NestedChannelWriteCB
NestedChannelWriteCB(Callback callback, boolean last)
-
-
Method Detail
-
onCompleteSuccess
protected void onCompleteSuccess()
Description copied from class:IteratingCallback
Invoked when the overall task has completed successfully.- Overrides:
onCompleteSuccess
in classHttpOutput.ChannelWriteCB
- See Also:
IteratingCallback.onCompleteFailure(Throwable)
-
onCompleteFailure
public void onCompleteFailure(java.lang.Throwable e)
Description copied from class:IteratingCallback
Invoked when the overall task has completed with a failure.- Overrides:
onCompleteFailure
in classHttpOutput.ChannelWriteCB
- Parameters:
e
- the throwable to indicate cause of failure- See Also:
IteratingCallback.onCompleteSuccess()
-
-