Class ExecWebSocketListener

  • All Implemented Interfaces:
    ExecWatch, WebSocket.Listener, Closeable, AutoCloseable

    public class ExecWebSocketListener
    extends Object
    implements ExecWatch, AutoCloseable, WebSocket.Listener
    A WebSocket.Listener for exec operations. This listener, is only responsible for the resources it creates. Externally passed resource, will not get closed, by this listener. All other resources will be cleaned up once, ONLY when the close() method is called. ExecListener methods, onClose() and onFailure are mutually exclusive and are meant to be called once and only once. Failures that propagate after a close() operation will not be propagated.