public class NettyAcceptor extends AbstractAcceptor
Modifier and Type | Field and Description |
---|---|
static String |
EPOLL_ACCEPTOR_TYPE |
static String |
INVM_ACCEPTOR_TYPE |
static String |
KQUEUE_ACCEPTOR_TYPE |
static String |
NIO_ACCEPTOR_TYPE |
protocolMap
Constructor and Description |
---|
NettyAcceptor(String name,
ClusterConnection clusterConnection,
Map<String,Object> configuration,
BufferHandler handler,
ServerConnectionLifeCycleListener listener,
ScheduledExecutorService scheduledThreadPool,
Executor failureExecutor,
Map<String,ProtocolManager> protocolMap) |
Modifier and Type | Method and Description |
---|---|
ConnectionCreator |
createConnectionCreator() |
ClusterConnection |
getClusterConnection() |
Map<String,Object> |
getConfiguration() |
String |
getName()
The name of the acceptor used on the configuration.
|
io.netty.handler.ssl.SslHandler |
getSslHandler(io.netty.buffer.ByteBufAllocator alloc) |
boolean |
isStarted() |
boolean |
isUnsecurable()
only InVM acceptors should allow this
|
void |
pause()
Pause the acceptor and stop it from receiving client requests.
|
void |
reload()
Re-create the acceptor with the existing configuration values.
|
void |
setDefaultActiveMQPrincipal(ActiveMQPrincipal defaultActiveMQPrincipal)
not allowed
|
void |
setKeyStorePath(String keyStorePath) |
void |
setNotificationService(NotificationService notificationService)
Set the notification service for this acceptor to use.
|
void |
start() |
void |
stop() |
void |
transfer(io.netty.channel.Channel channel)
Transfers the Netty channel that has been created outside of this NettyAcceptor
to control it and configure it according to this NettyAcceptor setting.
|
updateInterceptors
public static String INVM_ACCEPTOR_TYPE
public static String NIO_ACCEPTOR_TYPE
public static String EPOLL_ACCEPTOR_TYPE
public static String KQUEUE_ACCEPTOR_TYPE
public NettyAcceptor(String name, ClusterConnection clusterConnection, Map<String,Object> configuration, BufferHandler handler, ServerConnectionLifeCycleListener listener, ScheduledExecutorService scheduledThreadPool, Executor failureExecutor, Map<String,ProtocolManager> protocolMap)
public String getName()
Acceptor
public void setKeyStorePath(String keyStorePath)
public void transfer(io.netty.channel.Channel channel)
channel
- A Netty channel created outside this NettyAcceptor.public void reload()
Acceptor
public io.netty.handler.ssl.SslHandler getSslHandler(io.netty.buffer.ByteBufAllocator alloc) throws Exception
Exception
public void stop()
public boolean isStarted()
public void pause()
Acceptor
public void setNotificationService(NotificationService notificationService)
Acceptor
notificationService
- the notification servicepublic void setDefaultActiveMQPrincipal(ActiveMQPrincipal defaultActiveMQPrincipal)
defaultActiveMQPrincipal
- public boolean isUnsecurable()
public ClusterConnection getClusterConnection()
public ConnectionCreator createConnectionCreator()
Copyright © 2018 JBoss by Red Hat. All rights reserved.