Class AbstractWebSocketConnection.CallbackBridge
- java.lang.Object
-
- org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.CallbackBridge
-
- All Implemented Interfaces:
WriteCallback
- Enclosing class:
- AbstractWebSocketConnection
private static class AbstractWebSocketConnection.CallbackBridge extends java.lang.Object implements WriteCallback
-
-
Field Summary
Fields Modifier and Type Field Description private org.eclipse.jetty.util.Callback
callback
-
Constructor Summary
Constructors Constructor Description CallbackBridge(org.eclipse.jetty.util.Callback callback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
writeFailed(java.lang.Throwable x)
Callback invoked when the write fails.void
writeSuccess()
Callback invoked when the write completes.
-
-
-
Method Detail
-
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
-
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)
-
-