public class NettyAcceptor extends Object implements Acceptor
| Constructor and Description |
|---|
NettyAcceptor(ClusterConnection clusterConnection,
Map<String,Object> configuration,
BufferHandler handler,
BufferDecoder decoder,
ConnectionLifeCycleListener listener,
Executor threadPool,
ScheduledExecutorService scheduledThreadPool,
ProtocolManager protocolManager) |
NettyAcceptor(Map<String,Object> configuration,
BufferHandler handler,
BufferDecoder decoder,
ConnectionLifeCycleListener listener,
Executor threadPool,
ScheduledExecutorService scheduledThreadPool,
ProtocolManager protocolManager) |
| Modifier and Type | Method and Description |
|---|---|
ClusterConnection |
getClusterConnection() |
Map<String,Object> |
getConfiguration() |
boolean |
isStarted() |
boolean |
isUnsecurable()
only InVM acceptors should allow this
|
void |
pause()
Pause the acceptor and stop it from receiving client requests.
|
void |
setDefaultHornetQPrincipal(HornetQPrincipal defaultHornetQPrincipal)
not allowed
|
void |
setNotificationService(NotificationService notificationService)
Set the notification service for this acceptor to use.
|
void |
start() |
void |
stop() |
public NettyAcceptor(Map<String,Object> configuration, BufferHandler handler, BufferDecoder decoder, ConnectionLifeCycleListener listener, Executor threadPool, ScheduledExecutorService scheduledThreadPool, ProtocolManager protocolManager)
public NettyAcceptor(ClusterConnection clusterConnection, Map<String,Object> configuration, BufferHandler handler, BufferDecoder decoder, ConnectionLifeCycleListener listener, Executor threadPool, ScheduledExecutorService scheduledThreadPool, ProtocolManager protocolManager)
public void start()
throws Exception
start in interface HornetQComponentExceptionpublic Map<String,Object> getConfiguration()
getConfiguration in interface Acceptorpublic void stop()
stop in interface HornetQComponentpublic boolean isStarted()
isStarted in interface HornetQComponentpublic void pause()
Acceptorpublic void setNotificationService(NotificationService notificationService)
AcceptorsetNotificationService in interface AcceptornotificationService - the notification servicepublic void setDefaultHornetQPrincipal(HornetQPrincipal defaultHornetQPrincipal)
setDefaultHornetQPrincipal in interface AcceptordefaultHornetQPrincipal - public boolean isUnsecurable()
isUnsecurable in interface Acceptorpublic ClusterConnection getClusterConnection()
getClusterConnection in interface AcceptorCopyright © 2013 JBoss, a division of Red Hat. All rights reserved.