public final class InVMAcceptor extends AbstractAcceptor
protocolMap| Constructor and Description |
|---|
InVMAcceptor(String name,
ClusterConnection clusterConnection,
Map<String,Object> configuration,
org.apache.activemq.artemis.spi.core.remoting.BufferHandler handler,
ServerConnectionLifeCycleListener listener,
Map<String,ProtocolManager> protocolMap,
Executor threadPool) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(String connectionID,
org.apache.activemq.artemis.spi.core.remoting.BufferHandler remoteHandler,
InVMConnector connector,
Executor clientExecutor) |
void |
disconnect(String connectionID) |
ClusterConnection |
getClusterConnection() |
Map<String,Object> |
getConfiguration() |
int |
getConnectionCount() |
long |
getConnectionsAllowed() |
org.apache.activemq.artemis.utils.ExecutorFactory |
getExecutorFactory() |
org.apache.activemq.artemis.spi.core.remoting.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(org.apache.activemq.artemis.core.security.ActiveMQPrincipal defaultActiveMQPrincipal)
Set the default security Principal to be used when no user/pass are defined, only for InVM
|
void |
setNotificationService(org.apache.activemq.artemis.core.server.management.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, org.apache.activemq.artemis.spi.core.remoting.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(org.apache.activemq.artemis.core.server.management.NotificationService notificationService)
AcceptornotificationService - the notification servicepublic org.apache.activemq.artemis.spi.core.remoting.BufferHandler getHandler()
public org.apache.activemq.artemis.utils.ExecutorFactory getExecutorFactory()
public void connect(String connectionID, org.apache.activemq.artemis.spi.core.remoting.BufferHandler remoteHandler, InVMConnector connector, Executor clientExecutor)
public void disconnect(String connectionID)
public boolean isUnsecurable()
public void reload()
Acceptorpublic void setDefaultActiveMQPrincipal(org.apache.activemq.artemis.core.security.ActiveMQPrincipal defaultActiveMQPrincipal)
AcceptorCopyright © 2023 The Apache Software Foundation. All rights reserved.