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 Acceptorpublic ClusterConnection getClusterConnection()
getClusterConnection in interface Acceptorpublic void start()
throws Exception
start in interface HornetQComponentExceptionpublic 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 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 Acceptorpublic void setDefaultHornetQPrincipal(HornetQPrincipal defaultHornetQPrincipal)
setDefaultHornetQPrincipal in interface AcceptorCopyright © 2012 JBoss by Red Hat. All Rights Reserved.