Class BlockingWriteCallback.WriteBlocker
- java.lang.Object
-
- org.eclipse.jetty.websocket.common.BlockingWriteCallback.WriteBlocker
-
- All Implemented Interfaces:
AutoCloseable
,Callback
,Invocable
,WriteCallback
- Enclosing class:
- BlockingWriteCallback
@Deprecated(since="2021-05-27") public static class BlockingWriteCallback.WriteBlocker extends Object implements WriteCallback, Callback, AutoCloseable
Deprecated.
-
-
Nested Class Summary
-
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 inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
block()
Deprecated.void
close()
Deprecated.void
failed(Throwable x)
Deprecated.Callback invoked when the operation fails.Invocable.InvocationType
getInvocationType()
Deprecated.void
succeeded()
Deprecated.Callback invoked when the operation completes.void
writeFailed(Throwable x)
Deprecated.Callback invoked when the write fails.void
writeSuccess()
Deprecated.Callback invoked when the write completes.
-
-
-
Method Detail
-
getInvocationType
public Invocable.InvocationType getInvocationType()
Deprecated.- Specified by:
getInvocationType
in interfaceInvocable
- Returns:
- The InvocationType of this object
-
writeFailed
public void writeFailed(Throwable x)
Deprecated.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()
Deprecated.Description copied from interface:WriteCallback
Callback invoked when the write completes.
- Specified by:
writeSuccess
in interfaceWriteCallback
- See Also:
WriteCallback.writeFailed(Throwable)
-
succeeded
public void succeeded()
Deprecated.Description copied from interface:Callback
Callback invoked when the operation completes.
- Specified by:
succeeded
in interfaceCallback
- See Also:
Callback.failed(Throwable)
-
failed
public void failed(Throwable x)
Deprecated.Description copied from interface:Callback
Callback invoked when the operation fails.
-
close
public void close()
Deprecated.- Specified by:
close
in interfaceAutoCloseable
-
block
public void block() throws IOException
Deprecated.- Throws:
IOException
-
-