public final class InVMAcceptor extends AbstractAcceptor
protocolMap| Constructor and Description |
|---|
InVMAcceptor(String name,
ClusterConnection clusterConnection,
Map<String,Object> configuration,
BufferHandler handler,
ServerConnectionLifeCycleListener listener,
Map<String,ProtocolManager> protocolMap,
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() |
int |
getConnectionCount() |
long |
getConnectionsAllowed() |
ExecutorFactory |
getExecutorFactory() |
BufferHandler |
getHandler() |
String |
getName()
The name of the acceptor used on the configuration.
|
boolean |
isStarted() |
boolean |
isUnsecurable()
we are InVM so allow unsecure connections
|
void |
pause()
Pause the acceptor and stop it from receiving client requests.
|
void |
reload()
Re-create the acceptor with the existing configuration values.
|
void |
setDefaultActiveMQPrincipal(ActiveMQPrincipal defaultActiveMQPrincipal)
Set the default security Principal to be used when no user/pass are defined, only for InVM
|
void |
setNotificationService(NotificationService notificationService)
Set the notification service for this acceptor to use.
|
void |
start() |
void |
stop() |
updateInterceptorspublic InVMAcceptor(String name, ClusterConnection clusterConnection, Map<String,Object> configuration, BufferHandler handler, ServerConnectionLifeCycleListener listener, Map<String,ProtocolManager> protocolMap, Executor threadPool)
public String getName()
Acceptorpublic ClusterConnection getClusterConnection()
public long getConnectionsAllowed()
public int getConnectionCount()
public void stop()
public boolean isStarted()
public void pause()
Acceptorpublic void setNotificationService(NotificationService notificationService)
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()
public void reload()
Acceptorpublic void setDefaultActiveMQPrincipal(ActiveMQPrincipal defaultActiveMQPrincipal)
AcceptorCopyright © 2018 JBoss by Red Hat. All rights reserved.