Class FragmentExtension.Flusher
- java.lang.Object
-
- org.eclipse.jetty.util.IteratingCallback
-
- org.eclipse.jetty.websocket.common.extensions.fragment.FragmentExtension.Flusher
-
- All Implemented Interfaces:
org.eclipse.jetty.util.Callback,org.eclipse.jetty.util.thread.Invocable,WriteCallback
- Enclosing class:
- FragmentExtension
private class FragmentExtension.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 FragmentExtension.FrameEntrycurrentprivate booleanfinished
-
Constructor Summary
Constructors Modifier Constructor Description privateFlusher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidfragment(FragmentExtension.FrameEntry entry, boolean first)private voidnotifyCallbackFailure(WriteCallback callback, java.lang.Throwable failure)private voidnotifyCallbackSuccess(WriteCallback callback)protected voidonCompleteFailure(java.lang.Throwable x)protected voidonCompleteSuccess()protected org.eclipse.jetty.util.IteratingCallback.Actionprocess()voidwriteFailed(java.lang.Throwable x)Callback invoked when the write fails.voidwriteSuccess()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 FragmentExtension.FrameEntry current
-
finished
private boolean finished
-
-
Method Detail
-
process
protected org.eclipse.jetty.util.IteratingCallback.Action process()
- Specified by:
processin classorg.eclipse.jetty.util.IteratingCallback
-
fragment
private void fragment(FragmentExtension.FrameEntry entry, boolean first)
-
onCompleteSuccess
protected void onCompleteSuccess()
- Overrides:
onCompleteSuccessin classorg.eclipse.jetty.util.IteratingCallback
-
onCompleteFailure
protected void onCompleteFailure(java.lang.Throwable x)
- Overrides:
onCompleteFailurein classorg.eclipse.jetty.util.IteratingCallback
-
writeSuccess
public void writeSuccess()
Description copied from interface:WriteCallbackCallback invoked when the write completes.
- Specified by:
writeSuccessin interfaceWriteCallback- See Also:
WriteCallback.writeFailed(Throwable)
-
writeFailed
public void writeFailed(java.lang.Throwable x)
Description copied from interface:WriteCallbackCallback invoked when the write fails.
- Specified by:
writeFailedin 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)
-
-