public abstract class AbstractEventDriver extends AbstractLifeCycle implements IncomingFrames, EventDriver
AbstractLifeCycle.AbstractLifeCycleListenerLifeCycle.Listener| Constructor and Description |
|---|
AbstractEventDriver(WebSocketPolicy policy,
Object websocket) |
| Modifier and Type | Method and Description |
|---|---|
BatchMode |
getBatchMode() |
WebSocketPolicy |
getPolicy() |
WebSocketSession |
getSession() |
void |
incomingFrame(Frame frame)
Process the incoming frame.
|
void |
onContinuationFrame(ByteBuffer buffer,
boolean fin) |
void |
onPing(ByteBuffer buffer) |
void |
onPong(ByteBuffer buffer) |
void |
openSession(WebSocketSession session) |
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitonBinaryFrame, onBinaryMessage, onClose, onConnect, onError, onFrame, onInputStream, onReader, onTextFrame, onTextMessagepublic AbstractEventDriver(WebSocketPolicy policy, Object websocket)
public WebSocketPolicy getPolicy()
getPolicy in interface EventDriverpublic WebSocketSession getSession()
getSession in interface EventDriverpublic void incomingFrame(Frame frame)
IncomingFramesNote: if you need to hang onto any information from the frame, be sure to copy it, as the information contained in the Frame will be released and/or reused by the implementation.
incomingFrame in interface IncomingFramesframe - the frame to processpublic void onContinuationFrame(ByteBuffer buffer, boolean fin) throws IOException
onContinuationFrame in interface EventDriverIOExceptionpublic void onPong(ByteBuffer buffer)
onPong in interface EventDriverpublic void onPing(ByteBuffer buffer)
onPing in interface EventDriverpublic BatchMode getBatchMode()
getBatchMode in interface EventDriverpublic void openSession(WebSocketSession session)
openSession in interface EventDriverCopyright © 2010 - 2020 Adobe. All Rights Reserved