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) |
NettyAcceptor(Map<String,Object> configuration,
BufferHandler handler,
BufferDecoder decoder,
ConnectionLifeCycleListener listener,
Executor threadPool,
ScheduledExecutorService scheduledThreadPool) |
Modifier and Type | Method and Description |
---|---|
ClusterConnection |
getClusterConnection() |
Map<String,Object> |
getConfiguration() |
boolean |
isStarted() |
boolean |
isUnsecurable() |
void |
pause()
Pause the acceptor and stop it from receiving client requests.
|
void |
setDefaultHornetQPrincipal(HornetQPrincipal defaultHornetQPrincipal) |
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)
public NettyAcceptor(ClusterConnection clusterConnection, Map<String,Object> configuration, BufferHandler handler, BufferDecoder decoder, ConnectionLifeCycleListener listener, Executor threadPool, ScheduledExecutorService scheduledThreadPool)
public void start() throws Exception
start
in interface HornetQComponent
Exception
public Map<String,Object> getConfiguration()
getConfiguration
in interface Acceptor
public void stop()
stop
in interface HornetQComponent
public boolean isStarted()
isStarted
in interface HornetQComponent
public void pause()
Acceptor
public void setNotificationService(NotificationService notificationService)
Acceptor
setNotificationService
in interface Acceptor
notificationService
- the notification servicepublic void setDefaultHornetQPrincipal(HornetQPrincipal defaultHornetQPrincipal)
setDefaultHornetQPrincipal
in interface Acceptor
public boolean isUnsecurable()
isUnsecurable
in interface Acceptor
public ClusterConnection getClusterConnection()
getClusterConnection
in interface Acceptor
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.