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.Callbackcallback
-
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 voidwriteFailed(java.lang.Throwable x)Callback invoked when the write fails.voidwriteSuccess()Callback invoked when the write completes.
-
-
-
Method Detail
-
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
-
writeSuccess
public void writeSuccess()
Description copied from interface:WriteCallbackCallback invoked when the write completes.
- Specified by:
writeSuccessin interfaceWriteCallback- See Also:
WriteCallback.writeFailed(Throwable)
-
-