Package org.apache.activemq.broker
Class ProducerBrokerExchange
java.lang.Object
org.apache.activemq.broker.ProducerBrokerExchange
Holds internal state in the broker for a MessageProducer
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidblockingOnFlowControl(boolean blockingOnFlowControl) booleancanDispatch(org.apache.activemq.command.Message messageSend) Enforce duplicate suppression using info from persistence adaptercopy()intorg.apache.activemq.state.ProducerStatelongvoidvoidincrementTimeBlocked(Destination destination, long timeBlocked) booleanbooleanvoidvoidsetConnectionContext(ConnectionContext connectionContext) voidsetLastStoredSequenceId(long l) voidsetMutable(boolean mutable) voidsetProducerState(org.apache.activemq.state.ProducerState producerState) voidvoidsetRegionDestination(Destination regionDestination)
-
Constructor Details
-
ProducerBrokerExchange
public ProducerBrokerExchange()
-
-
Method Details
-
copy
-
getConnectionContext
- Returns:
- the connectionContext
-
setConnectionContext
- Parameters:
connectionContext- the connectionContext to set
-
isMutable
public boolean isMutable()- Returns:
- the mutable
-
setMutable
public void setMutable(boolean mutable) - Parameters:
mutable- the mutable to set
-
getRegionDestination
- Returns:
- the regionDestination
-
setRegionDestination
- Parameters:
regionDestination- the regionDestination to set
-
getRegion
- Returns:
- the region
-
setRegion
- Parameters:
region- the region to set
-
getProducerState
public org.apache.activemq.state.ProducerState getProducerState()- Returns:
- the producerState
-
setProducerState
public void setProducerState(org.apache.activemq.state.ProducerState producerState) - Parameters:
producerState- the producerState to set
-
canDispatch
public boolean canDispatch(org.apache.activemq.command.Message messageSend) Enforce duplicate suppression using info from persistence adapter- Returns:
- false if message should be ignored as a duplicate
-
setLastStoredSequenceId
public void setLastStoredSequenceId(long l) -
incrementSend
public void incrementSend() -
blockingOnFlowControl
public void blockingOnFlowControl(boolean blockingOnFlowControl) -
incrementTimeBlocked
-
isBlockedForFlowControl
public boolean isBlockedForFlowControl() -
resetFlowControl
public void resetFlowControl() -
getTotalTimeBlocked
public long getTotalTimeBlocked() -
getPercentageBlocked
public int getPercentageBlocked()
-