Class BlockingWriteCallback.WriteBlocker
java.lang.Object
org.eclipse.jetty.websocket.common.BlockingWriteCallback.WriteBlocker
- All Implemented Interfaces:
AutoCloseable
,org.eclipse.jetty.util.Callback
,org.eclipse.jetty.util.thread.Invocable
,WriteCallback
- Enclosing class:
BlockingWriteCallback
public static class BlockingWriteCallback.WriteBlocker
extends Object
implements WriteCallback, org.eclipse.jetty.util.Callback, AutoCloseable
-
Nested Class Summary
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
FieldsModifier and TypeFieldDescriptionprivate final org.eclipse.jetty.util.SharedBlockingCallback.Blocker
Fields inherited from interface org.eclipse.jetty.util.Callback
NOOP
Fields inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
WriteBlocker
(org.eclipse.jetty.util.SharedBlockingCallback.Blocker blocker) -
Method Summary
-
Field Details
-
blocker
private final org.eclipse.jetty.util.SharedBlockingCallback.Blocker blocker
-
-
Constructor Details
-
Method Details
-
getInvocationType
public org.eclipse.jetty.util.thread.Invocable.InvocationType getInvocationType()- Specified by:
getInvocationType
in interfaceorg.eclipse.jetty.util.thread.Invocable
-
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
-
writeSuccess
public void writeSuccess()Description copied from interface:WriteCallback
Callback invoked when the write completes.
- Specified by:
writeSuccess
in interfaceWriteCallback
- See Also:
-
succeeded
public void succeeded()- Specified by:
succeeded
in interfaceorg.eclipse.jetty.util.Callback
-
failed
- Specified by:
failed
in interfaceorg.eclipse.jetty.util.Callback
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
block
- Throws:
IOException
-