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)
CallbackCallback invoked when the operation fails.
public void succeeded()
CallbackCallback invoked when the operation completes.
succeeded in interface CallbackCallback.failed(Throwable)Copyright © 1995-2015 Webtide. All Rights Reserved.