|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.activemq.broker.region.cursors.AbstractPendingMessageCursor
org.apache.activemq.broker.region.cursors.StoreDurableSubscriberCursor
public class StoreDurableSubscriberCursor
persist pending messages pending message (messages awaiting dispatch to a consumer) cursor
| Field Summary |
|---|
| Fields inherited from class org.apache.activemq.broker.region.cursors.AbstractPendingMessageCursor |
|---|
audit, enableAudit, last, maxAuditDepth, maxBatchSize, maxProducersToAudit, memoryUsageHighWaterMark, prioritizedMessages, systemUsage, useCache |
| Constructor Summary | |
|---|---|
StoreDurableSubscriberCursor(Broker broker,
String clientId,
String subscriberName,
int maxBatchSize,
DurableTopicSubscription subscription)
|
|
| Method Summary | |
|---|---|
void |
add(ConnectionContext context,
Destination destination)
Add a destination |
void |
addMessageFirst(MessageReference node)
add message to await dispatch |
void |
addMessageLast(MessageReference node)
add message to await dispatch |
void |
addRecoveredMessage(MessageReference node)
Add a message recovered from a retroactive policy |
void |
clear()
clear all pending messages |
void |
gc()
free up any internal buffers |
protected PendingMessageCursor |
getNextCursor()
|
boolean |
hasNext()
|
boolean |
isEmpty()
|
boolean |
isEmpty(Destination destination)
check if a Destination is Empty for this cursor |
boolean |
isImmediatePriorityDispatch()
|
boolean |
isRecoveryRequired()
Informs the Broker if the subscription needs to intervention to recover it's state e.g. |
boolean |
isTransient()
|
MessageReference |
next()
|
void |
release()
hint to the cursor to release any locks it might have grabbed after a reset |
void |
remove()
remove the message at the cursor position |
List<MessageReference> |
remove(ConnectionContext context,
Destination destination)
remove a destination |
void |
remove(MessageReference node)
remove a node |
void |
reset()
reset the cursor |
void |
setEnableAudit(boolean enableAudit)
|
void |
setImmediatePriorityDispatch(boolean immediatePriorityDispatch)
|
void |
setMaxAuditDepth(int maxAuditDepth)
Set the maximum depth of message ids to track |
void |
setMaxBatchSize(int newMaxBatchSize)
Set the max batch size |
void |
setMaxProducersToAudit(int maxProducersToAudit)
set the maximum number of producers to track at one time |
void |
setMemoryUsageHighWaterMark(int memoryUsageHighWaterMark)
|
void |
setSystemUsage(SystemUsage usageManager)
Set the UsageManager |
void |
setUseCache(boolean useCache)
use a cache to improve performance |
int |
size()
|
void |
start()
|
void |
stop()
|
String |
toString()
|
| Methods inherited from class org.apache.activemq.broker.region.cursors.AbstractPendingMessageCursor |
|---|
destroy, fillBatch, getMaxAuditDepth, getMaxBatchSize, getMaxProducersToAudit, getMemoryUsageHighWaterMark, getMessageAudit, getSystemUsage, hasMessagesBufferedToDeliver, hasSpace, isCacheEnabled, isDuplicate, isEnableAudit, isFull, isPrioritizedMessageSubscriber, isStarted, isUseCache, pageInList, recordUniqueId, resetForGC, rollback, setCacheEnabled, setMessageAudit, tryAddMessageLast |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StoreDurableSubscriberCursor(Broker broker,
String clientId,
String subscriberName,
int maxBatchSize,
DurableTopicSubscription subscription)
broker - Broker for this cursorclientId - clientId for this cursorsubscriberName - subscriber name for this cursormaxBatchSize - currently ignoredsubscription - subscription for this cursor| Method Detail |
|---|
public void start()
throws Exception
start in interface Servicestart in class AbstractPendingMessageCursorException
public void stop()
throws Exception
stop in interface Servicestop in class AbstractPendingMessageCursorException
public void add(ConnectionContext context,
Destination destination)
throws Exception
add in interface PendingMessageCursoradd in class AbstractPendingMessageCursorcontext - destination -
Exception
public List<MessageReference> remove(ConnectionContext context,
Destination destination)
throws Exception
remove in interface PendingMessageCursorremove in class AbstractPendingMessageCursorcontext - destination -
Exceptionpublic boolean isEmpty()
isEmpty in interface PendingMessageCursorisEmpty in class AbstractPendingMessageCursorpublic boolean isEmpty(Destination destination)
PendingMessageCursor
isEmpty in interface PendingMessageCursorisEmpty in class AbstractPendingMessageCursorpublic boolean isRecoveryRequired()
isRecoveryRequired in interface PendingMessageCursorisRecoveryRequired in class AbstractPendingMessageCursorAbstractPendingMessageCursor
public void addMessageLast(MessageReference node)
throws Exception
PendingMessageCursor
addMessageLast in interface PendingMessageCursoraddMessageLast in class AbstractPendingMessageCursorIOException
Exceptionpublic boolean isTransient()
isTransient in interface PendingMessageCursorisTransient in class AbstractPendingMessageCursor
public void addMessageFirst(MessageReference node)
throws Exception
PendingMessageCursor
addMessageFirst in interface PendingMessageCursoraddMessageFirst in class AbstractPendingMessageCursorException
public void addRecoveredMessage(MessageReference node)
throws Exception
PendingMessageCursor
addRecoveredMessage in interface PendingMessageCursoraddRecoveredMessage in class AbstractPendingMessageCursorExceptionpublic void clear()
PendingMessageCursor
clear in interface PendingMessageCursorclear in class AbstractPendingMessageCursorpublic boolean hasNext()
hasNext in interface PendingMessageCursorhasNext in class AbstractPendingMessageCursorpublic MessageReference next()
next in interface PendingMessageCursornext in class AbstractPendingMessageCursorpublic void remove()
PendingMessageCursor
remove in interface PendingMessageCursorremove in class AbstractPendingMessageCursorpublic void remove(MessageReference node)
PendingMessageCursor
remove in interface PendingMessageCursorremove in class AbstractPendingMessageCursorpublic void reset()
PendingMessageCursor
reset in interface PendingMessageCursorreset in class AbstractPendingMessageCursorpublic void release()
PendingMessageCursor
release in interface PendingMessageCursorrelease in class AbstractPendingMessageCursorpublic int size()
size in interface PendingMessageCursorsize in class AbstractPendingMessageCursorpublic void setMaxBatchSize(int newMaxBatchSize)
PendingMessageCursor
setMaxBatchSize in interface PendingMessageCursorsetMaxBatchSize in class AbstractPendingMessageCursorpublic void gc()
PendingMessageCursor
gc in interface PendingMessageCursorgc in class AbstractPendingMessageCursorpublic void setSystemUsage(SystemUsage usageManager)
PendingMessageCursor
setSystemUsage in interface PendingMessageCursorsetSystemUsage in class AbstractPendingMessageCursorSystemUsagepublic void setMemoryUsageHighWaterMark(int memoryUsageHighWaterMark)
setMemoryUsageHighWaterMark in interface PendingMessageCursorsetMemoryUsageHighWaterMark in class AbstractPendingMessageCursormemoryUsageHighWaterMark - the memoryUsageHighWaterMark to setpublic void setMaxProducersToAudit(int maxProducersToAudit)
PendingMessageCursor
setMaxProducersToAudit in interface PendingMessageCursorsetMaxProducersToAudit in class AbstractPendingMessageCursormaxProducersToAudit - the maxProducersToAudit to setpublic void setMaxAuditDepth(int maxAuditDepth)
PendingMessageCursor
setMaxAuditDepth in interface PendingMessageCursorsetMaxAuditDepth in class AbstractPendingMessageCursormaxAuditDepth - the maxAuditDepth to setpublic void setEnableAudit(boolean enableAudit)
setEnableAudit in interface PendingMessageCursorsetEnableAudit in class AbstractPendingMessageCursorenableAudit - the enableAudit to setpublic void setUseCache(boolean useCache)
PendingMessageCursor
setUseCache in interface PendingMessageCursorsetUseCache in class AbstractPendingMessageCursor
protected PendingMessageCursor getNextCursor()
throws Exception
Exceptionpublic String toString()
toString in class Objectpublic boolean isImmediatePriorityDispatch()
public void setImmediatePriorityDispatch(boolean immediatePriorityDispatch)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||