public class JournalTopicMessageStore extends JournalMessageStore implements TopicMessageStore
inFlightTxLocations, lastLocation, peristenceAdapter, transactionStore, transactionTemplatedestination, FUTURE, indexListener, messageStoreStatistics, prioritizedMessages| Constructor and Description |
|---|
JournalTopicMessageStore(JournalPersistenceAdapter adapter,
TopicMessageStore checkpointStore,
org.apache.activemq.command.ActiveMQTopic destinationName) |
| Modifier and Type | Method and Description |
|---|---|
void |
acknowledge(ConnectionContext context,
String clientId,
String subscriptionName,
org.apache.activemq.command.MessageId messageId,
org.apache.activemq.command.MessageAck originalAck) |
protected void |
acknowledge(org.apache.activemq.command.MessageId messageId,
org.apache.activeio.journal.RecordLocation location,
SubscriptionKey key) |
void |
addMessage(ConnectionContext context,
org.apache.activemq.command.Message message)
Not synchronized since the Journal has better throughput if you increase
the number of concurrent writes that it is doing.
|
void |
addSubscription(org.apache.activemq.command.SubscriptionInfo subscriptionInfo,
boolean retroactive) |
org.apache.activeio.journal.RecordLocation |
checkpoint() |
void |
deleteSubscription(String clientId,
String subscriptionName) |
org.apache.activemq.command.SubscriptionInfo[] |
getAllSubscriptions() |
TopicMessageStore |
getLongTermTopicMessageStore() |
int |
getMessageCount(String clientId,
String subscriberName) |
long |
getMessageSize(String clientId,
String subscriberName) |
MessageStoreSubscriptionStatistics |
getMessageStoreSubStatistics() |
org.apache.activemq.command.SubscriptionInfo |
lookupSubscription(String clientId,
String subscriptionName) |
void |
recoverNextMessages(String clientId,
String subscriptionName,
int maxReturned,
MessageRecoveryListener listener) |
void |
recoverSubscription(String clientId,
String subscriptionName,
MessageRecoveryListener listener) |
void |
replayAcknowledge(ConnectionContext context,
String clientId,
String subscritionName,
org.apache.activemq.command.MessageId messageId) |
void |
resetBatching(String clientId,
String subscriptionName) |
addMessageReference, checkpoint, getLongTermMessageStore, getMessage, getMessageCount, getMessageReference, getMessageSize, recover, recoverNextMessages, removeAllMessages, removeMessage, replayAddMessage, replayRemoveMessage, resetBatching, setBatch, setMemoryUsage, start, stopaddMessage, asyncAddQueueMessage, asyncAddQueueMessage, asyncAddTopicMessage, asyncAddTopicMessage, dispose, getDestination, getIndexListener, getMessageStoreStatistics, isEmpty, isPrioritizedMessages, recoverMessageStoreStatistics, registerIndexListener, removeAsyncMessage, setPrioritizedMessages, updateMessageclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddMessage, asyncAddQueueMessage, asyncAddQueueMessage, asyncAddTopicMessage, asyncAddTopicMessage, dispose, getDestination, getMessage, getMessageCount, getMessageSize, getMessageStoreStatistics, isEmpty, isPrioritizedMessages, recover, recoverNextMessages, registerIndexListener, removeAllMessages, removeAsyncMessage, removeMessage, resetBatching, setBatch, setMemoryUsage, setPrioritizedMessages, updateMessagepublic JournalTopicMessageStore(JournalPersistenceAdapter adapter, TopicMessageStore checkpointStore, org.apache.activemq.command.ActiveMQTopic destinationName)
public void recoverSubscription(String clientId, String subscriptionName, MessageRecoveryListener listener) throws Exception
recoverSubscription in interface TopicMessageStoreExceptionpublic void recoverNextMessages(String clientId, String subscriptionName, int maxReturned, MessageRecoveryListener listener) throws Exception
recoverNextMessages in interface TopicMessageStoreExceptionpublic org.apache.activemq.command.SubscriptionInfo lookupSubscription(String clientId, String subscriptionName) throws IOException
lookupSubscription in interface TopicMessageStoreIOExceptionpublic void addSubscription(org.apache.activemq.command.SubscriptionInfo subscriptionInfo, boolean retroactive) throws IOException
addSubscription in interface TopicMessageStoreIOExceptionpublic void addMessage(ConnectionContext context, org.apache.activemq.command.Message message) throws IOException
JournalMessageStoreaddMessage in interface MessageStoreaddMessage in class JournalMessageStoreIOExceptionpublic void acknowledge(ConnectionContext context, String clientId, String subscriptionName, org.apache.activemq.command.MessageId messageId, org.apache.activemq.command.MessageAck originalAck) throws IOException
acknowledge in interface TopicMessageStoreIOExceptionpublic void replayAcknowledge(ConnectionContext context, String clientId, String subscritionName, org.apache.activemq.command.MessageId messageId)
protected void acknowledge(org.apache.activemq.command.MessageId messageId, org.apache.activeio.journal.RecordLocation location, SubscriptionKey key)
messageId - location - key - public org.apache.activeio.journal.RecordLocation checkpoint() throws IOException
checkpoint in class JournalMessageStoreIOExceptionpublic TopicMessageStore getLongTermTopicMessageStore()
public void deleteSubscription(String clientId, String subscriptionName) throws IOException
deleteSubscription in interface TopicMessageStoreIOExceptionpublic org.apache.activemq.command.SubscriptionInfo[] getAllSubscriptions() throws IOException
getAllSubscriptions in interface TopicMessageStoreIOExceptionpublic int getMessageCount(String clientId, String subscriberName) throws IOException
getMessageCount in interface TopicMessageStoreIOExceptionpublic long getMessageSize(String clientId, String subscriberName) throws IOException
getMessageSize in interface TopicMessageStoreIOExceptionpublic void resetBatching(String clientId, String subscriptionName)
resetBatching in interface TopicMessageStorepublic MessageStoreSubscriptionStatistics getMessageStoreSubStatistics()
getMessageStoreSubStatistics in interface TopicMessageStoreCopyright © 2005–2020 The Apache Software Foundation. All rights reserved.