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,
long 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,
long channelId) |
public static final DefaultUnknownChannelReferenceHandler INSTANCE
public DefaultUnknownChannelReferenceHandler()
public Channel handleUnknownChannelCommand(ConnectionService service, byte cmd, long channelId, Buffer buffer) throws IOException
UnknownChannelReferenceHandler
handleUnknownChannelCommand
in interface UnknownChannelReferenceHandler
service
- 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, long channelId) throws IOException
IOException
Copyright © 2008–2024 The Apache Software Foundation. All rights reserved.