| Modifier and Type | Class and Description |
|---|---|
| public abstract static class | |
| public abstract static class |
| Modifier and Type | Field and Description |
|---|---|
| private final MessageSink | |
| private final MethodHandle | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(Frame
the frame to consume frame, Callback the callback to complete when the frame is consumed callback)Implements org. Consumes the WebSocket frame, possibly asynchronously when this method has returned. |
| public void | fail(Throwable
the cause of the failure failure)Overrides default org. Fails this |
| pack-priv void | |
| pack-priv abstract MessageSink | newMessageSink(CoreSession coreSession)
Returns: a message sink which will first decode the message then pass it to |
| _messageSink | back to summary |
|---|---|
| private final MessageSink _messageSink | |
| _methodHandle | back to summary |
|---|---|
| private final MethodHandle _methodHandle | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| AbstractDecodedMessageSink | back to summary |
|---|---|
| public AbstractDecodedMessageSink(CoreSession coreSession, MethodHandle methodHandle) | |
| accept | back to summary |
|---|---|
| public void accept(Frame frame, Callback callback) Implements org. Doc from org. Consumes the WebSocket frame, possibly asynchronously when this method has returned. The callback argument must be completed when the frame payload is consumed. The demand for more frames must be explicitly invoked,
or arranged to be invoked asynchronously, by the implementation
of this method, by calling | |
| fail | back to summary |
|---|---|
| public void fail(Throwable failure) Overrides default org. Doc from org. Fails this | |
| invoke | back to summary |
|---|---|
| pack-priv void invoke(Object message) Invoke the MessageSink with the decoded message.
| |
| newMessageSink | back to summary |
|---|---|
pack-priv abstract MessageSink newMessageSink(CoreSession coreSession) throws Exception
| |
| Access | Constructor and Description |
|---|---|
| public |
| _decoders | back to summary |
|---|---|
| protected final List<T> _decoders | |
| Basic | back to summary |
|---|---|
| public Basic(CoreSession coreSession, MethodHandle methodHandle, List<RegisteredDecoder> decoders) | |
| Modifier and Type | Field and Description |
|---|---|
| protected final T |
| Access | Constructor and Description |
|---|---|
| public |
| _decoder | back to summary |
|---|---|
| protected final T _decoder | |
| Stream | back to summary |
|---|---|
| public Stream(CoreSession coreSession, MethodHandle methodHandle, List<RegisteredDecoder> decoders) | |