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.Nested
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable
Invocable.InvocationType
-
-
Field Summary
Fields Modifier and Type Field Description 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 Modifier Constructor Description privateNestedChannelWriteCB(Callback callback, boolean last)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Invocable.InvocationTypegetInvocationType()voidonCompleteFailure(java.lang.Throwable e)Invoked when the overall task has completed with a failure.protected voidonCompleteSuccess()Invoked when the overall task has completed successfully.
-
-
-
Field Detail
-
_callback
private final Callback _callback
-
-
Constructor Detail
-
NestedChannelWriteCB
private NestedChannelWriteCB(Callback callback, boolean last)
-
-
Method Detail
-
getInvocationType
public Invocable.InvocationType getInvocationType()
- Specified by:
getInvocationTypein interfaceInvocable- Overrides:
getInvocationTypein classHttpOutput.ChannelWriteCB- Returns:
- The InvocationType of this object
-
onCompleteSuccess
protected void onCompleteSuccess()
Description copied from class:IteratingCallbackInvoked when the overall task has completed successfully.- Overrides:
onCompleteSuccessin classHttpOutput.ChannelWriteCB- See Also:
IteratingCallback.onCompleteFailure(Throwable)
-
onCompleteFailure
public void onCompleteFailure(java.lang.Throwable e)
Description copied from class:IteratingCallbackInvoked when the overall task has completed with a failure.- Overrides:
onCompleteFailurein classHttpOutput.ChannelWriteCB- Parameters:
e- the throwable to indicate cause of failure- See Also:
IteratingCallback.onCompleteSuccess()
-
-