Class CompressExtension.Flusher
java.lang.Object
org.eclipse.jetty.util.IteratingCallback
org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension.Flusher
- All Implemented Interfaces:
org.eclipse.jetty.util.Callback
,org.eclipse.jetty.util.thread.Invocable
,WriteCallback
- Enclosing class:
- CompressExtension
private class CompressExtension.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
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Callback
org.eclipse.jetty.util.Callback.Completable, org.eclipse.jetty.util.Callback.Completing, org.eclipse.jetty.util.Callback.Nested
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable
org.eclipse.jetty.util.thread.Invocable.InvocationType
-
Field Summary
FieldsFields inherited from interface org.eclipse.jetty.util.Callback
NOOP
Fields inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
compress
(CompressExtension.FrameEntry entry, boolean first) private void
void
protected void
protected void
protected org.eclipse.jetty.util.IteratingCallback.Action
process()
void
Callback invoked when the write fails.void
Callback invoked when the write completes.Methods inherited from class org.eclipse.jetty.util.IteratingCallback
close, isClosed, isFailed, isSucceeded, iterate, reset, succeeded, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.util.thread.Invocable
getInvocationType
-
Field Details
-
current
-
finished
private boolean finished
-
-
Constructor Details
-
Flusher
private Flusher()
-
-
Method Details
-
failed
- Specified by:
failed
in interfaceorg.eclipse.jetty.util.Callback
- Overrides:
failed
in classorg.eclipse.jetty.util.IteratingCallback
-
process
- Specified by:
process
in classorg.eclipse.jetty.util.IteratingCallback
- Throws:
Exception
-
deflate
-
compress
-
onCompleteSuccess
protected void onCompleteSuccess()- Overrides:
onCompleteSuccess
in classorg.eclipse.jetty.util.IteratingCallback
-
onCompleteFailure
- 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:
-
writeFailed
Description copied from interface:WriteCallback
Callback invoked when the write fails.
- Specified by:
writeFailed
in interfaceWriteCallback
- Parameters:
x
- the reason for the write failure
-