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 |
---|---|
void |
asyncStop(Runnable callback) |
ConnectionCreator |
createConnectionCreator() |
ClusterConnection |
getClusterConnection() |
Map<String,Object> |
getConfiguration() |
Map<Object,NettyServerConnection> |
getConnections() |
String |
getName()
The name of the acceptor used on the configuration.
|
ProtocolHandler |
getProtocolHandler() |
int |
getQuietPeriod() |
int |
getShutdownTimeout() |
io.netty.handler.ssl.SslHandler |
getSslHandler(io.netty.buffer.ByteBufAllocator alloc,
String peerHost,
int peerPort) |
boolean |
isAutoStart() |
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.
|
NettyAcceptor |
setQuietPeriod(int quietPeriod) |
NettyAcceptor |
setShutdownTimeout(int shutdownTimeout) |
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.
|
getProtocolMap, 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 Map<Object,NettyServerConnection> getConnections()
public ProtocolHandler getProtocolHandler()
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, String peerHost, int peerPort) throws Exception
Exception
public void asyncStop(Runnable callback)
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()
public int getQuietPeriod()
public NettyAcceptor setQuietPeriod(int quietPeriod)
public int getShutdownTimeout()
public NettyAcceptor setShutdownTimeout(int shutdownTimeout)
public boolean isAutoStart()
Copyright © 2021 JBoss by Red Hat. All rights reserved.