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() |
getProtocolMap, updateInterceptors
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asyncStop
public InVMAcceptor(String name, ClusterConnection clusterConnection, Map<String,Object> configuration, BufferHandler handler, ServerConnectionLifeCycleListener listener, Map<String,ProtocolManager> protocolMap, Executor threadPool)
public String getName()
Acceptor
public ClusterConnection getClusterConnection()
public long getConnectionsAllowed()
public int getConnectionCount()
public void stop()
public boolean isStarted()
public void pause()
Acceptor
public void setNotificationService(NotificationService notificationService)
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()
public void reload()
Acceptor
public void setDefaultActiveMQPrincipal(ActiveMQPrincipal defaultActiveMQPrincipal)
Acceptor
Copyright © 2021 JBoss by Red Hat. All rights reserved.