public class JDBCTopicMessageStore extends JDBCMessageStore implements TopicMessageStore
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_SEQUENCE_ID_CACHE_SIZE |
adapter, audit, lastRecoveredPriority, lastRecoveredSequenceId, pendingAdditions, persistenceAdapter, wireFormatdestination, FUTURE, indexListener, prioritizedMessages| Constructor and Description |
|---|
JDBCTopicMessageStore(JDBCPersistenceAdapter persistenceAdapter,
JDBCAdapter adapter,
org.apache.activemq.wireformat.WireFormat wireFormat,
org.apache.activemq.command.ActiveMQTopic topic,
org.apache.activemq.ActiveMQMessageAudit audit) |
| 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 ack) |
void |
addSubscription(org.apache.activemq.command.SubscriptionInfo subscriptionInfo,
boolean retroactive) |
void |
complete(String clientId,
String subscriptionName) |
void |
deleteSubscription(String clientId,
String subscriptionName) |
org.apache.activemq.command.SubscriptionInfo[] |
getAllSubscriptions() |
long[] |
getCachedStoreSequenceId(TransactionContext transactionContext,
org.apache.activemq.command.ActiveMQDestination destination,
org.apache.activemq.command.MessageId messageId) |
int |
getMessageCount(String clientId,
String subscriberName) |
protected String |
getSubscriptionKey(String clientId,
String subscriberName) |
org.apache.activemq.command.SubscriptionInfo |
lookupSubscription(String clientId,
String subscriptionName) |
protected void |
onAdd(org.apache.activemq.command.Message message,
long sequenceId,
byte priority) |
void |
pendingCompletion(String clientId,
String subscriptionName,
long sequenceId,
byte priority) |
void |
recoverNextMessages(String clientId,
String subscriptionName,
int maxReturned,
MessageRecoveryListener listener) |
void |
recoverSubscription(String clientId,
String subscriptionName,
MessageRecoveryListener listener) |
void |
resetBatching(String clientId,
String subscriptionName) |
addMessage, addMessageReference, getMessage, getMessageCount, getMessageReference, recover, recoverNextMessages, removeAllMessages, removeMessage, resetBatching, setBatch, setPrioritizedMessages, toString, updateMessageaddMessage, asyncAddQueueMessage, asyncAddQueueMessage, asyncAddTopicMessage, asyncAddTopicMessage, dispose, getDestination, getIndexListener, isEmpty, isPrioritizedMessages, registerIndexListener, removeAsyncMessage, setMemoryUsage, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddMessage, addMessage, asyncAddQueueMessage, asyncAddQueueMessage, asyncAddTopicMessage, asyncAddTopicMessage, dispose, getDestination, getMessage, getMessageCount, isEmpty, isPrioritizedMessages, recover, recoverNextMessages, registerIndexListener, removeAllMessages, removeAsyncMessage, removeMessage, resetBatching, setBatch, setMemoryUsage, setPrioritizedMessages, updateMessagepublic static final String PROPERTY_SEQUENCE_ID_CACHE_SIZE
public JDBCTopicMessageStore(JDBCPersistenceAdapter persistenceAdapter, JDBCAdapter adapter, org.apache.activemq.wireformat.WireFormat wireFormat, org.apache.activemq.command.ActiveMQTopic topic, org.apache.activemq.ActiveMQMessageAudit audit) throws IOException
IOExceptionpublic void acknowledge(ConnectionContext context, String clientId, String subscriptionName, org.apache.activemq.command.MessageId messageId, org.apache.activemq.command.MessageAck ack) throws IOException
acknowledge in interface TopicMessageStoreIOExceptionpublic long[] getCachedStoreSequenceId(TransactionContext transactionContext, org.apache.activemq.command.ActiveMQDestination destination, org.apache.activemq.command.MessageId messageId) throws SQLException, IOException
SQLExceptionIOExceptionpublic 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 void resetBatching(String clientId, String subscriptionName)
resetBatching in interface TopicMessageStorepublic void pendingCompletion(String clientId, String subscriptionName, long sequenceId, byte priority)
protected void onAdd(org.apache.activemq.command.Message message, long sequenceId, byte priority)
onAdd in class JDBCMessageStorepublic void addSubscription(org.apache.activemq.command.SubscriptionInfo subscriptionInfo, boolean retroactive) throws IOException
addSubscription in interface TopicMessageStoreIOExceptionpublic org.apache.activemq.command.SubscriptionInfo lookupSubscription(String clientId, String subscriptionName) throws IOException
lookupSubscription in interface TopicMessageStoreIOExceptionTopicMessageStore.lookupSubscription(String,
String)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 TopicMessageStoreIOExceptionprotected String getSubscriptionKey(String clientId, String subscriberName)
Copyright © 2005–2015 The Apache Software Foundation. All rights reserved.