Class ExtensionStack.Flusher
- java.lang.Object
-
- org.eclipse.jetty.util.IteratingCallback
-
- org.eclipse.jetty.websocket.common.extensions.ExtensionStack.Flusher
-
- All Implemented Interfaces:
org.eclipse.jetty.util.Callback
,org.eclipse.jetty.util.thread.Invocable
,WriteCallback
- Enclosing class:
- ExtensionStack
private class ExtensionStack.Flusher extends org.eclipse.jetty.util.IteratingCallback implements WriteCallback
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.util.IteratingCallback
org.eclipse.jetty.util.IteratingCallback.Action
-
-
Field Summary
Fields Modifier and Type Field Description private ExtensionStack.FrameEntry
current
-
Constructor Summary
Constructors Modifier Constructor Description private
Flusher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
notifyCallbackFailure(WriteCallback callback, java.lang.Throwable failure)
private void
notifyCallbackSuccess(WriteCallback callback)
protected void
onCompleteFailure(java.lang.Throwable x)
protected void
onCompleteSuccess()
protected org.eclipse.jetty.util.IteratingCallback.Action
process()
void
writeFailed(java.lang.Throwable x)
Callback invoked when the write fails.void
writeSuccess()
Callback invoked when the write completes.-
Methods inherited from class org.eclipse.jetty.util.IteratingCallback
close, failed, isClosed, isFailed, isSucceeded, iterate, reset, succeeded, toString
-
-
-
-
Field Detail
-
current
private ExtensionStack.FrameEntry current
-
-
Method Detail
-
process
protected org.eclipse.jetty.util.IteratingCallback.Action process() throws java.lang.Exception
- Specified by:
process
in classorg.eclipse.jetty.util.IteratingCallback
- Throws:
java.lang.Exception
-
onCompleteSuccess
protected void onCompleteSuccess()
- Overrides:
onCompleteSuccess
in classorg.eclipse.jetty.util.IteratingCallback
-
onCompleteFailure
protected void onCompleteFailure(java.lang.Throwable x)
- Overrides:
onCompleteFailure
in classorg.eclipse.jetty.util.IteratingCallback
-
writeSuccess
public void writeSuccess()
Description copied from interface:WriteCallback
Callback invoked when the write completes.
- Specified by:
writeSuccess
in interfaceWriteCallback
- See Also:
WriteCallback.writeFailed(Throwable)
-
writeFailed
public void writeFailed(java.lang.Throwable x)
Description copied from interface:WriteCallback
Callback invoked when the write fails.
- Specified by:
writeFailed
in interfaceWriteCallback
- Parameters:
x
- the reason for the write failure
-
notifyCallbackSuccess
private void notifyCallbackSuccess(WriteCallback callback)
-
notifyCallbackFailure
private void notifyCallbackFailure(WriteCallback callback, java.lang.Throwable failure)
-
-