|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.activemq.broker.region.BaseDestination
public abstract class BaseDestination
| Field Summary | |
|---|---|
protected Broker |
broker
|
protected BrokerService |
brokerService
|
protected DeadLetterStrategy |
deadLetterStrategy
|
protected ActiveMQDestination |
destination
|
protected DestinationStatistics |
destinationStatistics
|
static int |
MAX_BROWSE_PAGE_SIZE
|
static int |
MAX_PAGE_SIZE
The maximum number of messages to page in to the destination from persistent storage |
protected MemoryUsage |
memoryUsage
|
protected Broker |
regionBroker
|
protected MessageStore |
store
|
protected SystemUsage |
systemUsage
|
| Fields inherited from interface org.apache.activemq.broker.region.Destination |
|---|
DEFAULT_DEAD_LETTER_STRATEGY |
| Constructor Summary | |
|---|---|
BaseDestination(BrokerService brokerService,
MessageStore store,
ActiveMQDestination destination,
DestinationStatistics parentStats)
|
|
| Method Summary | |
|---|---|
void |
addProducer(ConnectionContext context,
ProducerInfo info)
|
void |
dispose(ConnectionContext context)
|
void |
fastProducer(ConnectionContext context,
ProducerInfo producerInfo)
Called to notify a producer is too fast |
ActiveMQDestination |
getActiveMQDestination()
|
DeadLetterStrategy |
getDeadLetterStrategy()
|
protected long |
getDestinationSequenceId()
|
DestinationStatistics |
getDestinationStatistics()
|
int |
getMaxAuditDepth()
|
int |
getMaxBrowsePageSize()
|
int |
getMaxPageSize()
|
int |
getMaxProducersToAudit()
|
MemoryUsage |
getMemoryUsage()
|
MessageStore |
getMessageStore()
|
int |
getMinimumMessageSize()
|
String |
getName()
|
void |
initialize()
initialize the destination |
boolean |
isActive()
|
boolean |
isAdvisdoryForFastProducers()
|
boolean |
isAdvisoryForConsumed()
|
boolean |
isAdvisoryForDelivery()
|
boolean |
isAdvisoryForDiscardingMessages()
|
boolean |
isAdvisoryForSlowConsumers()
|
boolean |
isAdvisoryWhenFull()
|
boolean |
isEnableAudit()
|
void |
isFull(ConnectionContext context,
Usage usage)
Called when a Usage reaches a limit |
boolean |
isLazyDispatch()
|
boolean |
isProducerFlowControl()
|
boolean |
isUseCache()
|
void |
messageConsumed(ConnectionContext context,
MessageReference messageReference)
called when message is consumed |
void |
messageDelivered(ConnectionContext context,
MessageReference messageReference)
Called when message is delivered to the broker |
void |
messageDiscarded(ConnectionContext context,
MessageReference messageReference)
Called when a message is discarded - e.g. |
void |
removeProducer(ConnectionContext context,
ProducerInfo info)
|
void |
setAdvisdoryForFastProducers(boolean advisdoryForFastProducers)
|
void |
setAdvisoryForConsumed(boolean advisoryForConsumed)
|
void |
setAdvisoryForDelivery(boolean advisoryForDelivery)
|
void |
setAdvisoryForDiscardingMessages(boolean advisoryForDiscardingMessages)
|
void |
setAdvisoryForSlowConsumers(boolean advisoryForSlowConsumers)
|
void |
setAdvisoryWhenFull(boolean advisoryWhenFull)
|
void |
setDeadLetterStrategy(DeadLetterStrategy deadLetterStrategy)
set the dead letter strategy |
void |
setEnableAudit(boolean enableAudit)
|
void |
setLazyDispatch(boolean lazyDispatch)
set the lazy dispatch - default is false |
void |
setMaxAuditDepth(int maxAuditDepth)
|
void |
setMaxBrowsePageSize(int maxPageSize)
|
void |
setMaxPageSize(int maxPageSize)
|
void |
setMaxProducersToAudit(int maxProducersToAudit)
|
void |
setMinimumMessageSize(int minimumMessageSize)
|
void |
setProducerFlowControl(boolean producerFlowControl)
|
void |
setUseCache(boolean useCache)
|
void |
slowConsumer(ConnectionContext context,
Subscription subs)
Called when there is a slow consumer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.activemq.broker.region.Destination |
|---|
acknowledge, addSubscription, browse, gc, getConsumers, messageExpired, removeSubscription, send, wakeup |
| Methods inherited from interface org.apache.activemq.Service |
|---|
start, stop |
| Methods inherited from interface org.apache.activemq.thread.Task |
|---|
iterate |
| Field Detail |
|---|
public static final int MAX_PAGE_SIZE
public static final int MAX_BROWSE_PAGE_SIZE
protected final ActiveMQDestination destination
protected final Broker broker
protected final MessageStore store
protected SystemUsage systemUsage
protected MemoryUsage memoryUsage
protected final DestinationStatistics destinationStatistics
protected final BrokerService brokerService
protected final Broker regionBroker
protected DeadLetterStrategy deadLetterStrategy
| Constructor Detail |
|---|
public BaseDestination(BrokerService brokerService,
MessageStore store,
ActiveMQDestination destination,
DestinationStatistics parentStats)
throws Exception
broker - store - destination - parentStats -
Exception| Method Detail |
|---|
public void initialize()
throws Exception
Exceptionpublic boolean isProducerFlowControl()
isProducerFlowControl in interface Destinationpublic void setProducerFlowControl(boolean producerFlowControl)
setProducerFlowControl in interface DestinationproducerFlowControl - the producerFlowControl to setpublic int getMaxProducersToAudit()
getMaxProducersToAudit in interface Destinationpublic void setMaxProducersToAudit(int maxProducersToAudit)
setMaxProducersToAudit in interface DestinationmaxProducersToAudit - the maxProducersToAudit to setpublic int getMaxAuditDepth()
getMaxAuditDepth in interface Destinationpublic void setMaxAuditDepth(int maxAuditDepth)
setMaxAuditDepth in interface DestinationmaxAuditDepth - the maxAuditDepth to setpublic boolean isEnableAudit()
isEnableAudit in interface Destinationpublic void setEnableAudit(boolean enableAudit)
setEnableAudit in interface DestinationenableAudit - the enableAudit to set
public void addProducer(ConnectionContext context,
ProducerInfo info)
throws Exception
addProducer in interface DestinationException
public void removeProducer(ConnectionContext context,
ProducerInfo info)
throws Exception
removeProducer in interface DestinationExceptionpublic final MemoryUsage getMemoryUsage()
getMemoryUsage in interface Destinationpublic DestinationStatistics getDestinationStatistics()
getDestinationStatistics in interface Destinationpublic ActiveMQDestination getActiveMQDestination()
getActiveMQDestination in interface Destinationpublic final String getName()
getName in interface Destinationpublic final MessageStore getMessageStore()
getMessageStore in interface Destinationpublic final boolean isActive()
isActive in interface Destinationpublic int getMaxPageSize()
getMaxPageSize in interface Destinationpublic void setMaxPageSize(int maxPageSize)
setMaxPageSize in interface Destinationpublic int getMaxBrowsePageSize()
getMaxBrowsePageSize in interface Destinationpublic void setMaxBrowsePageSize(int maxPageSize)
setMaxBrowsePageSize in interface Destinationpublic boolean isUseCache()
isUseCache in interface Destinationpublic void setUseCache(boolean useCache)
setUseCache in interface Destinationpublic int getMinimumMessageSize()
getMinimumMessageSize in interface Destinationpublic void setMinimumMessageSize(int minimumMessageSize)
setMinimumMessageSize in interface Destinationpublic boolean isLazyDispatch()
isLazyDispatch in interface Destinationpublic void setLazyDispatch(boolean lazyDispatch)
Destination
setLazyDispatch in interface Destinationprotected long getDestinationSequenceId()
public boolean isAdvisoryForSlowConsumers()
public void setAdvisoryForSlowConsumers(boolean advisoryForSlowConsumers)
advisoryForSlowConsumers - the advisoryForSlowConsumers to setpublic boolean isAdvisoryForDiscardingMessages()
public void setAdvisoryForDiscardingMessages(boolean advisoryForDiscardingMessages)
advisoryForDiscardingMessages - the advisoryForDiscardingMessages to setpublic boolean isAdvisoryWhenFull()
public void setAdvisoryWhenFull(boolean advisoryWhenFull)
advisoryWhenFull - the advisoryWhenFull to setpublic boolean isAdvisoryForDelivery()
public void setAdvisoryForDelivery(boolean advisoryForDelivery)
advisoryForDelivery - the advisoryForDelivery to setpublic boolean isAdvisoryForConsumed()
public void setAdvisoryForConsumed(boolean advisoryForConsumed)
advisoryForConsumed - the advisoryForConsumed to setpublic boolean isAdvisdoryForFastProducers()
public void setAdvisdoryForFastProducers(boolean advisdoryForFastProducers)
advisdoryForFastProducers - the advisdoryForFastProducers to setpublic DeadLetterStrategy getDeadLetterStrategy()
getDeadLetterStrategy in interface Destinationpublic void setDeadLetterStrategy(DeadLetterStrategy deadLetterStrategy)
deadLetterStrategy -
public void messageConsumed(ConnectionContext context,
MessageReference messageReference)
messageConsumed in interface Destinationcontext - messageReference -
public void messageDelivered(ConnectionContext context,
MessageReference messageReference)
messageDelivered in interface Destinationcontext - messageReference -
public void messageDiscarded(ConnectionContext context,
MessageReference messageReference)
messageDiscarded in interface Destinationcontext - messageReference -
public void slowConsumer(ConnectionContext context,
Subscription subs)
slowConsumer in interface Destinationcontext - subs -
public void fastProducer(ConnectionContext context,
ProducerInfo producerInfo)
fastProducer in interface Destinationcontext - producerInfo -
public void isFull(ConnectionContext context,
Usage usage)
isFull in interface Destinationcontext - usage -
public void dispose(ConnectionContext context)
throws IOException
dispose in interface DestinationIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||