public class MessageHandlerWrapper extends Object
MessageHandler
instance along with its associated MessageHandlerMetadata
and DecoderFactory.Wrapper
Constructor and Description |
---|
MessageHandlerWrapper(MessageHandler handler,
MessageHandlerMetadata metadata,
DecoderFactory.Wrapper decoder) |
Modifier and Type | Method and Description |
---|---|
DecoderFactory.Wrapper |
getDecoder() |
MessageHandler |
getHandler() |
MessageHandlerMetadata |
getMetadata() |
boolean |
isMessageType(Class<?> msgType) |
boolean |
wantsPartialMessages()
Flag for a onMessage() that wants partial messages.
|
boolean |
wantsStreams()
Flag for a onMessage() method that wants MessageHandler.
Whole with a Decoder that is based on TextStream or BinaryStream |
public MessageHandlerWrapper(MessageHandler handler, MessageHandlerMetadata metadata, DecoderFactory.Wrapper decoder)
public DecoderFactory.Wrapper getDecoder()
public MessageHandler getHandler()
public MessageHandlerMetadata getMetadata()
public boolean isMessageType(Class<?> msgType)
public boolean wantsPartialMessages()
This indicates the use of MessageHandler.Partial
.
Partial
, false for use of MessageHandler.Whole
public boolean wantsStreams()
Whole
with a Decoder that is based on TextStream
or BinaryStream
Copyright © 1995-2015 Webtide. All Rights Reserved.