public class DefaultUnknownChannelReferenceHandler extends AbstractLoggingBean implements UnknownChannelReferenceHandler
| Modifier and Type | Field and Description |
|---|---|
static DefaultUnknownChannelReferenceHandler |
INSTANCE |
log| Constructor and Description |
|---|
DefaultUnknownChannelReferenceHandler() |
| Modifier and Type | Method and Description |
|---|---|
Channel |
handleUnknownChannelCommand(ConnectionService service,
byte cmd,
int channelId,
Buffer buffer)
Invoked when the connection service responsible for handling channel
messages receives a message intended for an unknown channel.
|
protected IoWriteFuture |
sendFailureResponse(ConnectionService service,
byte cmd,
int channelId) |
getSimplifiedLoggerpublic static final DefaultUnknownChannelReferenceHandler INSTANCE
public DefaultUnknownChannelReferenceHandler()
public Channel handleUnknownChannelCommand(ConnectionService service, byte cmd, int channelId, Buffer buffer) throws IOException
UnknownChannelReferenceHandlerhandleUnknownChannelCommand in interface UnknownChannelReferenceHandlerservice - The ConnectionService instance through which the
message was receivedcmd - The requested command identifierchannelId - The (unknown) target channel identifierbuffer - The message Buffer containing the rest of the messageChannel - if null then the message
for the unknown channel is ignored.IOException - If failed to handle the requestprotected IoWriteFuture sendFailureResponse(ConnectionService service, byte cmd, int channelId) throws IOException
IOExceptionCopyright © 2008–2018 The Apache Software Foundation. All rights reserved.