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 private
NestedChannelWriteCB(Callback callback, boolean last)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Invocable.InvocationType
getInvocationType()
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.
-
-
-
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:
getInvocationType
in interfaceInvocable
- Overrides:
getInvocationType
in classHttpOutput.ChannelWriteCB
- Returns:
- The InvocationType of this object
-
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()
-
-