public class WriteCallbackWrapper extends Object implements Callback
WriteCallback
WebSocket API with a Jetty Callback
.
We don't expose the jetty Callback
object to the webapp, as that makes things complicated for the WebAppContext's Classloader.
Callback.Adapter
Constructor and Description |
---|
WriteCallbackWrapper(WriteCallback callback) |
public WriteCallbackWrapper(WriteCallback callback)
public static Callback wrap(WriteCallback callback)
public void failed(Throwable x)
Callback
Callback invoked when the operation fails.
public void succeeded()
Callback
Callback invoked when the operation completes.
succeeded
in interface Callback
Callback.failed(Throwable)
Copyright © 1995-2015 Webtide. All Rights Reserved.