org.apache.activemq.artemis.spi.core.remoting

## Interface Acceptor

- All Superinterfaces:
    org.apache.activemq.artemis.core.server.ActiveMQComponent

      public interface Acceptor
      extends org.apache.activemq.artemis.core.server.ActiveMQComponent

  An Acceptor is used by the RemotingService to allow clients to connect. It should take care of dispatching client requests to the RemotingService's Dispatcher.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `org.apache.activemq.artemis.core.server.cluster.ClusterConnection` | `getClusterConnection()`
    `Map<String,Object>` | `getConfiguration()`
    `String` | `getName()` The name of the acceptor used on the configuration.
    `boolean` | `isUnsecurable()` Whether this acceptor allows insecure connections.
    `void` | `pause()` Pause the acceptor and stop it from receiving client requests.
    `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.

    - ### Methods inherited from interface org.apache.activemq.artemis.core.server.ActiveMQComponent

      `isStarted, start, stop`

- - ### Method Detail

    - #### getName

          String getName()

      The name of the acceptor used on the configuration. for logging and debug purposes.

    - #### pause

          void pause()

      Pause the acceptor and stop it from receiving client requests.

    - #### getClusterConnection

          org.apache.activemq.artemis.core.server.cluster.ClusterConnection getClusterConnection()

      Returns:
        the cluster connection associated with this Acceptor

    - #### getConfiguration

          Map<String,Object> getConfiguration()

    - #### setNotificationService

          void setNotificationService(org.apache.activemq.artemis.core.server.management.NotificationService notificationService)

      Set the notification service for this acceptor to use.
      Parameters:
        `notificationService` - the notification service

    - #### setDefaultActiveMQPrincipal

          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

    - #### isUnsecurable

          boolean isUnsecurable()

      Whether this acceptor allows insecure connections.
      Throws:
        `IllegalStateException` - if false @setDefaultActiveMQPrincipal

Copyright © 2017. All rights reserved.