public class NettyAcceptor extends Object implements Acceptor
Constructor and Description |
---|
NettyAcceptor(String name,
ClusterConnection clusterConnection,
Map<String,Object> configuration,
BufferHandler handler,
ConnectionLifeCycleListener 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.
|
boolean |
isStarted() |
boolean |
isUnsecurable()
only InVM acceptors should allow this
|
void |
pause()
Pause the acceptor and stop it from receiving client requests.
|
void |
setDefaultActiveMQPrincipal(ActiveMQPrincipal defaultActiveMQPrincipal)
not allowed
|
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.
|
public NettyAcceptor(String name, ClusterConnection clusterConnection, Map<String,Object> configuration, BufferHandler handler, ConnectionLifeCycleListener listener, ScheduledExecutorService scheduledThreadPool, Map<String,ProtocolManager> protocolMap)
public void start() throws Exception
start
in interface ActiveMQComponent
Exception
public String getName()
Acceptor
public void transfer(io.netty.channel.Channel channel)
channel
- A Netty channel created outside this NettyAcceptor.public Map<String,Object> getConfiguration()
getConfiguration
in interface Acceptor
public void stop()
stop
in interface ActiveMQComponent
public boolean isStarted()
isStarted
in interface ActiveMQComponent
public void pause()
Acceptor
public void setNotificationService(NotificationService notificationService)
Acceptor
setNotificationService
in interface Acceptor
notificationService
- the notification servicepublic void setDefaultActiveMQPrincipal(ActiveMQPrincipal defaultActiveMQPrincipal)
setDefaultActiveMQPrincipal
in interface Acceptor
defaultActiveMQPrincipal
- public boolean isUnsecurable()
isUnsecurable
in interface Acceptor
public ClusterConnection getClusterConnection()
getClusterConnection
in interface Acceptor
public ConnectionCreator createConnectionCreator()
Copyright © 2016 JBoss by Red Hat. All rights reserved.