public class MasterServerChannelContext extends NettyChannelContext
MasterServerChannelContext class.
Modifier and Type | Class and Description |
---|---|
class |
MasterServerChannelContext.MasterServerProperties |
NettyChannelContext.Properties
Modifier | Constructor and Description |
---|---|
|
MasterServerChannelContext(io.netty.channel.Channel channel,
NettyMessenger<? extends AbstractRequest,? extends AbstractResponse> messenger)
Constructor for MasterServerChannelContext.
|
protected |
MasterServerChannelContext(NettyChannelContext context)
Constructor for MasterServerChannelContext.
|
Modifier and Type | Method and Description |
---|---|
static MasterServerChannelContext |
getContext(io.netty.channel.Channel channel) |
MasterServerMessenger |
messenger()
messenger.
|
protected NettyChannelContext.Properties |
newProperties(NettyChannelContext.Properties copy)
newProperties.
|
MasterServerChannelContext.MasterServerProperties |
properties()
properties.
|
MasterServerChannelContext |
restore()
Restore the previously saved context
|
MasterServerChannelContext |
save()
Save the current state of this context
|
CompletableFuture<MasterServerChannelContext> |
send()
send.
|
attach, channel, cleanup, clear, clone, close, composedFuture, disableAutoRelease, disableReadTimeout, disableWriteTimeout, enableAutoRelease, equals, eventLoop, exists, future, get, hasError, hashCode, hasResponse, id, inEventLoop, isCompleted, isValid, localAddress, markInError, markSuccess, receive, receive, remoteAddress, set, toString
public MasterServerChannelContext(io.netty.channel.Channel channel, NettyMessenger<? extends AbstractRequest,? extends AbstractResponse> messenger)
Constructor for MasterServerChannelContext.
channel
- a Channel
objectmessenger
- a NettyMessenger
objectprotected MasterServerChannelContext(NettyChannelContext context)
Constructor for MasterServerChannelContext.
context
- a NettyChannelContext
objectpublic static MasterServerChannelContext getContext(io.netty.channel.Channel channel)
protected NettyChannelContext.Properties newProperties(NettyChannelContext.Properties copy)
newProperties.
newProperties
in class NettyChannelContext
copy
- a NettyChannelContext.Properties
objectNettyChannelContext.Properties
objectpublic MasterServerChannelContext.MasterServerProperties properties()
properties.
properties
in class NettyChannelContext
NettyChannelContext.Properties
objectpublic MasterServerMessenger messenger()
messenger.
messenger
in class NettyChannelContext
NettyMessenger
objectpublic CompletableFuture<MasterServerChannelContext> send()
send.
send
in class NettyChannelContext
CompletableFuture
objectpublic MasterServerChannelContext save()
save
in class NettyChannelContext
NettyChannelContext
public MasterServerChannelContext restore()
restore
in class NettyChannelContext
NettyChannelContext
Copyright © 2016–2024. All rights reserved.