Package org.apache.activemq.artemis.api.core

## Interface BaseInterceptor<P>

- All Known Subinterfaces:
    `Interceptor`

      public interface BaseInterceptor<P>

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | `intercept​(P packet, RemotingConnection connection)` | Intercepts a packet which is received before it is sent to the channel

- - ### Method Detail

    - #### intercept

          boolean intercept​(P packet,
                            RemotingConnection connection)
                     throws org.apache.activemq.artemis.api.core.ActiveMQException

      Intercepts a packet which is received before it is sent to the channel
      Parameters:
        `packet` - the packet being received
        `connection` - the connection the packet was received on
      Returns:
        `true` to process the next interceptor and handle the packet, `false` to abort processing of the packet
      Throws:
        `org.apache.activemq.artemis.api.core.ActiveMQException`