public class NettyAcceptor extends AbstractAcceptor
protocolMap| Constructor and Description |
|---|
NettyAcceptor(String name,
ClusterConnection clusterConnection,
Map<String,Object> configuration,
BufferHandler handler,
ServerConnectionLifeCycleListener listener,
ScheduledExecutorService scheduledThreadPool,
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() |
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.
|
updateInterceptorspublic NettyAcceptor(String name, ClusterConnection clusterConnection, Map<String,Object> configuration, BufferHandler handler, ServerConnectionLifeCycleListener listener, ScheduledExecutorService scheduledThreadPool, Map<String,ProtocolManager> protocolMap)
public String getName()
Acceptorpublic void setKeyStorePath(String keyStorePath)
public void transfer(io.netty.channel.Channel channel)
channel - A Netty channel created outside this NettyAcceptor.public void reload()
Acceptorpublic io.netty.handler.ssl.SslHandler getSslHandler()
throws Exception
Exceptionpublic void stop()
public boolean isStarted()
public void pause()
Acceptorpublic void setNotificationService(NotificationService notificationService)
AcceptornotificationService - 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.