Class AMQPFederationCommandProcessor
- java.lang.Object
-
- org.apache.activemq.artemis.protocol.amqp.proton.ProtonInitializable
-
- org.apache.activemq.artemis.protocol.amqp.proton.ProtonAbstractReceiver
-
- org.apache.activemq.artemis.protocol.amqp.connect.federation.AMQPFederationCommandProcessor
-
- All Implemented Interfaces:
ProtonDeliveryHandler
public class AMQPFederationCommandProcessor extends ProtonAbstractReceiver
A specialized AMQP Receiver that handles commands from a remote Federation connection such as handling incoming policies that should be applied to local addresses and queues.
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.artemis.protocol.amqp.proton.ProtonAbstractReceiver
connection, creditRunnable, currentLargeMessage, minLargeMessageSize, pendingSettles, protonSession, receiver, routingContext, sessionSPI, useModified
-
Fields inherited from class org.apache.activemq.artemis.protocol.amqp.proton.ProtonInitializable
initialized
-
-
Constructor Summary
Constructors Constructor Description AMQPFederationCommandProcessor(AMQPFederationTarget federation, AMQPSessionContext session, org.apache.qpid.proton.engine.Receiver receiver)Create the new federation command receiver
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidactualDelivery(AMQPMessage message, org.apache.qpid.proton.engine.Delivery delivery, org.apache.qpid.proton.engine.Receiver receiver, org.apache.activemq.artemis.core.transaction.Transaction tx)protected RunnablecreateCreditRunnable(AMQPConnectionContext connection)Subclass can override this to provide a custom credit runnable that performs other checks or applies credit in a manner more fitting that implementation.voidflow()voidinitialize()-
Methods inherited from class org.apache.activemq.artemis.protocol.amqp.proton.ProtonAbstractReceiver
calculatedUpdateRefill, clearLargeMessage, close, close, createCreditRunnable, createCreditRunnable, getConfiguredMinLargeMessageSize, getConnection, incrementSettle, initializeCurrentLargeMessage, isBellowThreshold, onFlow, onMessage, recoverContext, settle
-
Methods inherited from class org.apache.activemq.artemis.protocol.amqp.proton.ProtonInitializable
isInitialized
-
-
-
-
Constructor Detail
-
AMQPFederationCommandProcessor
public AMQPFederationCommandProcessor(AMQPFederationTarget federation, AMQPSessionContext session, org.apache.qpid.proton.engine.Receiver receiver)
Create the new federation command receiver- Parameters:
federation- The AMQP Federation instance that this command consumer resides in.session- The associated session for this federation command consumer.receiver- The protonReceiverthat this command consumer reads from.
-
-
Method Detail
-
initialize
public void initialize() throws Exception- Specified by:
initializein classProtonInitializable- Throws:
Exception
-
actualDelivery
protected void actualDelivery(AMQPMessage message, org.apache.qpid.proton.engine.Delivery delivery, org.apache.qpid.proton.engine.Receiver receiver, org.apache.activemq.artemis.core.transaction.Transaction tx)
- Specified by:
actualDeliveryin classProtonAbstractReceiver
-
createCreditRunnable
protected Runnable createCreditRunnable(AMQPConnectionContext connection)
Description copied from class:ProtonAbstractReceiverSubclass can override this to provide a custom credit runnable that performs other checks or applies credit in a manner more fitting that implementation.- Overrides:
createCreditRunnablein classProtonAbstractReceiver- Parameters:
connection- TheAMQPConnectionContextthat this resource falls under.- Returns:
- a
Runnablethat will perform the actual credit granting operation.
-
flow
public void flow()
- Specified by:
flowin classProtonAbstractReceiver
-
-