Class ProtonProtocolManager

    • Constructor Detail

      • ProtonProtocolManager

        public ProtonProtocolManager​(ProtonProtocolManagerFactory factory,
                                     org.apache.activemq.artemis.core.server.ActiveMQServer server,
                                     java.util.List<org.apache.activemq.artemis.api.core.BaseInterceptor> incomingInterceptors,
                                     java.util.List<org.apache.activemq.artemis.api.core.BaseInterceptor> outgoingInterceptors)
    • Method Detail

      • getMirrorAddress

        public static java.lang.String getMirrorAddress​(java.lang.String connectionName)
      • getServer

        public org.apache.activemq.artemis.core.server.ActiveMQServer getServer()
      • onNotification

        public void onNotification​(org.apache.activemq.artemis.core.server.management.Notification notification)
        Specified by:
        onNotification in interface org.apache.activemq.artemis.core.server.management.NotificationListener
      • getAmqpMinLargeMessageSize

        public int getAmqpMinLargeMessageSize()
      • setAmqpMinLargeMessageSize

        public ProtonProtocolManager setAmqpMinLargeMessageSize​(int amqpMinLargeMessageSize)
      • isAmqpDuplicateDetection

        public boolean isAmqpDuplicateDetection()
      • setAmqpDuplicateDetection

        public ProtonProtocolManager setAmqpDuplicateDetection​(boolean duplicateDetection)
      • getFactory

        public org.apache.activemq.artemis.spi.core.protocol.ProtocolManagerFactory<AmqpInterceptor> getFactory()
        Specified by:
        getFactory in interface org.apache.activemq.artemis.spi.core.protocol.ProtocolManager<AmqpInterceptor,​AMQPRoutingHandler>
      • updateInterceptors

        public void updateInterceptors​(java.util.List incoming,
                                       java.util.List outgoing)
        Specified by:
        updateInterceptors in interface org.apache.activemq.artemis.spi.core.protocol.ProtocolManager<AmqpInterceptor,​AMQPRoutingHandler>
      • acceptsNoHandshake

        public boolean acceptsNoHandshake()
        Specified by:
        acceptsNoHandshake in interface org.apache.activemq.artemis.spi.core.protocol.ProtocolManager<AmqpInterceptor,​AMQPRoutingHandler>
      • getAmqpIdleTimeout

        public java.lang.Long getAmqpIdleTimeout()
      • isDirectDeliver

        public boolean isDirectDeliver()
      • createConnectionEntry

        public org.apache.activemq.artemis.spi.core.protocol.ConnectionEntry createConnectionEntry​(org.apache.activemq.artemis.spi.core.remoting.Acceptor acceptorUsed,
                                                                                                   org.apache.activemq.artemis.spi.core.remoting.Connection remotingConnection)
        Specified by:
        createConnectionEntry in interface org.apache.activemq.artemis.spi.core.protocol.ProtocolManager<AmqpInterceptor,​AMQPRoutingHandler>
      • createOutgoingConnectionEntry

        public org.apache.activemq.artemis.spi.core.protocol.ConnectionEntry createOutgoingConnectionEntry​(org.apache.activemq.artemis.spi.core.remoting.Connection remotingConnection)
        This method is not part of the ProtocolManager interface because it only makes sense on AMQP. More specifically on AMQP Bridges
      • createOutgoingConnectionEntry

        public org.apache.activemq.artemis.spi.core.protocol.ConnectionEntry createOutgoingConnectionEntry​(org.apache.activemq.artemis.spi.core.remoting.Connection remotingConnection,
                                                                                                           ClientSASLFactory saslFactory)
      • handleBuffer

        public void handleBuffer​(org.apache.activemq.artemis.spi.core.protocol.RemotingConnection connection,
                                 org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer)
        Specified by:
        handleBuffer in interface org.apache.activemq.artemis.spi.core.protocol.ProtocolManager<AmqpInterceptor,​AMQPRoutingHandler>
      • addChannelHandlers

        public void addChannelHandlers​(io.netty.channel.ChannelPipeline pipeline)
        Specified by:
        addChannelHandlers in interface org.apache.activemq.artemis.spi.core.protocol.ProtocolManager<AmqpInterceptor,​AMQPRoutingHandler>
      • getAmqpCredits

        public int getAmqpCredits()
      • getAmqpLowCredits

        public int getAmqpLowCredits()
      • isProtocol

        public boolean isProtocol​(byte[] array)
        Specified by:
        isProtocol in interface org.apache.activemq.artemis.spi.core.protocol.ProtocolManager<AmqpInterceptor,​AMQPRoutingHandler>
      • handshake

        public void handshake​(org.apache.activemq.artemis.core.remoting.impl.netty.NettyServerConnection connection,
                              org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer)
        Specified by:
        handshake in interface org.apache.activemq.artemis.spi.core.protocol.ProtocolManager<AmqpInterceptor,​AMQPRoutingHandler>
      • websocketSubprotocolIdentifiers

        public java.util.List<java.lang.String> websocketSubprotocolIdentifiers()
        Specified by:
        websocketSubprotocolIdentifiers in interface org.apache.activemq.artemis.spi.core.protocol.ProtocolManager<AmqpInterceptor,​AMQPRoutingHandler>
      • getPubSubPrefix

        public java.lang.String getPubSubPrefix()
      • setPubSubPrefix

        public void setPubSubPrefix​(java.lang.String pubSubPrefix)
      • getMaxFrameSize

        public int getMaxFrameSize()
      • setMaxFrameSize

        public void setMaxFrameSize​(int maxFrameSize)
      • getSaslMechanisms

        public java.lang.String[] getSaslMechanisms()
      • setSaslMechanisms

        public void setSaslMechanisms​(java.lang.String[] saslMechanisms)
      • getSaslLoginConfigScope

        public java.lang.String getSaslLoginConfigScope()
      • setSaslLoginConfigScope

        public void setSaslLoginConfigScope​(java.lang.String saslLoginConfigScope)
      • getInitialRemoteMaxFrameSize

        public int getInitialRemoteMaxFrameSize()
      • setInitialRemoteMaxFrameSize

        public void setInitialRemoteMaxFrameSize​(int initialRemoteMaxFrameSize)
      • isUseModifiedForTransientDeliveryErrors

        public boolean isUseModifiedForTransientDeliveryErrors()
        Returns true if transient delivery errors should be handled with a Modified disposition (if permitted by link)
      • setAmqpUseModifiedForTransientDeliveryErrors

        public ProtonProtocolManager setAmqpUseModifiedForTransientDeliveryErrors​(boolean amqpUseModifiedForTransientDeliveryErrors)
        Sets if transient delivery errors should be handled with a Modified disposition (if permitted by link)
      • setAmqpTreatRejectAsUnmodifiedDeliveryFailed

        public void setAmqpTreatRejectAsUnmodifiedDeliveryFailed​(boolean amqpTreatRejectAsUnmodifiedDeliveryFailed)
      • isAmqpTreatRejectAsUnmodifiedDeliveryFailed

        public boolean isAmqpTreatRejectAsUnmodifiedDeliveryFailed()