public class InVMAcceptor extends Object implements Acceptor
Constructor and Description |
---|
InVMAcceptor(ClusterConnection clusterConnection,
Map<String,Object> configuration,
BufferHandler handler,
ConnectionLifeCycleListener listener,
Executor threadPool) |
Modifier and Type | Method and Description |
---|---|
void |
connect(String connectionID,
BufferHandler remoteHandler,
InVMConnector connector,
Executor clientExecutor) |
void |
disconnect(String connectionID) |
ClusterConnection |
getClusterConnection() |
Map<String,Object> |
getConfiguration() |
ExecutorFactory |
getExecutorFactory() |
BufferHandler |
getHandler() |
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 InVMAcceptor(ClusterConnection clusterConnection, Map<String,Object> configuration, BufferHandler handler, ConnectionLifeCycleListener listener, Executor threadPool)
public Map<String,Object> getConfiguration()
getConfiguration
in interface Acceptor
public ClusterConnection getClusterConnection()
getClusterConnection
in interface Acceptor
public void start() throws Exception
start
in interface HornetQComponent
Exception
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 BufferHandler getHandler()
public ExecutorFactory getExecutorFactory()
public void connect(String connectionID, BufferHandler remoteHandler, InVMConnector connector, Executor clientExecutor)
public void disconnect(String connectionID)
public boolean isUnsecurable()
isUnsecurable
in interface Acceptor
public void setDefaultHornetQPrincipal(HornetQPrincipal defaultHornetQPrincipal)
setDefaultHornetQPrincipal
in interface Acceptor
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.