Package org.eclipse.jetty.websocket.api
Interface WriteCallback
-
- All Known Implementing Classes:
WriteCallback.Adaptor
public interface WriteCallback
Callback for Write events.NOTE: We don't expose org.eclipse.jetty.util.Callback here as that would complicate matters with the WebAppContext's classloader isolation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
WriteCallback.Adaptor
-
Field Summary
Fields Modifier and Type Field Description static WriteCallback
NOOP
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Field Detail
-
NOOP
static final WriteCallback NOOP
-
-
Method Detail
-
writeFailed
void writeFailed(java.lang.Throwable x)
Callback invoked when the write fails.
- Parameters:
x
- the reason for the write failure
-
writeSuccess
void writeSuccess()
Callback invoked when the write completes.
- See Also:
writeFailed(Throwable)
-
-