public class DefaultChannelContextFactory<M extends NettyMessenger<? extends AbstractRequest,? extends AbstractResponse>> extends Object implements NettyChannelContextFactory
DefaultChannelContextFactory class.
Constructor and Description |
---|
DefaultChannelContextFactory(M messenger)
Constructor for DefaultChannelContextFactory.
|
Modifier and Type | Method and Description |
---|---|
NettyChannelContext |
create(io.netty.channel.Channel channel)
create.
|
M |
getMessenger()
Getter for the field
messenger . |
protected NettyChannelContext |
newChannelContext(io.netty.channel.Channel channel,
M messenger)
newChannelContext.
|
public DefaultChannelContextFactory(M messenger)
Constructor for DefaultChannelContextFactory.
messenger
- a M objectpublic final NettyChannelContext create(io.netty.channel.Channel channel)
create.
create
in interface NettyChannelContextFactory
channel
- a Channel
objectNettyChannelContext
objectprotected NettyChannelContext newChannelContext(io.netty.channel.Channel channel, M messenger)
newChannelContext.
channel
- a Channel
objectmessenger
- a M objectNettyChannelContext
objectpublic final M getMessenger()
Getter for the field messenger
.
Copyright © 2016–2024. All rights reserved.