Package org.apache.activemq.store.jdbc
Class JDBCTopicMessageStore
java.lang.Object
org.apache.activemq.store.AbstractMessageStore
org.apache.activemq.store.jdbc.JDBCMessageStore
org.apache.activemq.store.jdbc.JDBCTopicMessageStore
- All Implemented Interfaces:
org.apache.activemq.Service,MessageStore,TopicMessageStore
-
Field Summary
FieldsFields inherited from class org.apache.activemq.store.jdbc.JDBCMessageStore
adapter, audit, pendingAdditions, persistenceAdapter, rolledBackAcks, wireFormatFields inherited from class org.apache.activemq.store.AbstractMessageStore
destination, FUTURE, indexListener, messageStoreStatistics, prioritizedMessages -
Constructor Summary
ConstructorsConstructorDescriptionJDBCTopicMessageStore(JDBCPersistenceAdapter persistenceAdapter, JDBCAdapter adapter, org.apache.activemq.wireformat.WireFormat wireFormat, org.apache.activemq.command.ActiveMQTopic topic, org.apache.activemq.ActiveMQMessageAudit audit) -
Method Summary
Modifier and TypeMethodDescriptionvoidacknowledge(ConnectionContext context, String clientId, String subscriptionName, org.apache.activemq.command.MessageId messageId, org.apache.activemq.command.MessageAck ack) voidaddSubscription(org.apache.activemq.command.SubscriptionInfo subscriptionInfo, boolean retroactive) voidvoiddeleteSubscription(String clientId, String subscriptionName) org.apache.activemq.command.SubscriptionInfo[]long[]getCachedStoreSequenceId(TransactionContext transactionContext, org.apache.activemq.command.ActiveMQDestination destination, org.apache.activemq.command.MessageId messageId) intgetMessageCount(String clientId, String subscriberName) longgetMessageSize(String clientId, String subscriberName) protected StringgetSubscriptionKey(String clientId, String subscriberName) org.apache.activemq.command.SubscriptionInfolookupSubscription(String clientId, String subscriptionName) protected voidonAdd(org.apache.activemq.command.Message message, long sequenceId, byte priority) voidpendingCompletion(String clientId, String subscriptionName, long sequenceId, byte priority) voidrecoverNextMessages(String clientId, String subscriptionName, int maxReturned, MessageRecoveryListener listener) voidrecoverSubscription(String clientId, String subscriptionName, MessageRecoveryListener listener) voidresetBatching(String clientId, String subscriptionName) Methods inherited from class org.apache.activemq.store.jdbc.JDBCMessageStore
addMessage, addMessageReference, getMessage, getMessageCount, getMessageReference, recover, recoverNextMessages, removeAllMessages, removeMessage, resetBatching, setBatch, setPrioritizedMessages, toString, trackRollbackAck, updateMessageMethods inherited from class org.apache.activemq.store.AbstractMessageStore
addMessage, asyncAddQueueMessage, asyncAddQueueMessage, asyncAddTopicMessage, asyncAddTopicMessage, dispose, getDestination, getIndexListener, getMessageSize, getMessageStoreStatistics, isEmpty, isPrioritizedMessages, recoverMessageStoreStatistics, registerIndexListener, removeAsyncMessage, setMemoryUsage, start, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.activemq.store.MessageStore
addMessage, addMessage, asyncAddQueueMessage, asyncAddQueueMessage, asyncAddTopicMessage, asyncAddTopicMessage, dispose, getDestination, getMessage, getMessageCount, getMessageSize, getMessageStoreStatistics, isEmpty, isPrioritizedMessages, recover, recoverNextMessages, registerIndexListener, removeAllMessages, removeAsyncMessage, removeMessage, resetBatching, setBatch, setMemoryUsage, setPrioritizedMessages, updateMessageMethods inherited from interface org.apache.activemq.Service
start, stop
-
Field Details
-
PROPERTY_SEQUENCE_ID_CACHE_SIZE
- See Also:
-
-
Constructor Details
-
JDBCTopicMessageStore
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 - Throws:
IOException
-
-
Method Details
-
acknowledge
public void acknowledge(ConnectionContext context, String clientId, String subscriptionName, org.apache.activemq.command.MessageId messageId, org.apache.activemq.command.MessageAck ack) throws IOException - Specified by:
acknowledgein interfaceTopicMessageStore- Throws:
IOException
-
getCachedStoreSequenceId
public long[] getCachedStoreSequenceId(TransactionContext transactionContext, org.apache.activemq.command.ActiveMQDestination destination, org.apache.activemq.command.MessageId messageId) throws SQLException, IOException - Throws:
SQLExceptionIOException
-
recoverSubscription
public void recoverSubscription(String clientId, String subscriptionName, MessageRecoveryListener listener) throws Exception - Specified by:
recoverSubscriptionin interfaceTopicMessageStore- Throws:
Exception
-
recoverNextMessages
public void recoverNextMessages(String clientId, String subscriptionName, int maxReturned, MessageRecoveryListener listener) throws Exception - Specified by:
recoverNextMessagesin interfaceTopicMessageStore- Throws:
Exception
-
resetBatching
- Specified by:
resetBatchingin interfaceTopicMessageStore
-
pendingCompletion
-
complete
-
onAdd
protected void onAdd(org.apache.activemq.command.Message message, long sequenceId, byte priority) - Overrides:
onAddin classJDBCMessageStore
-
addSubscription
public void addSubscription(org.apache.activemq.command.SubscriptionInfo subscriptionInfo, boolean retroactive) throws IOException - Specified by:
addSubscriptionin interfaceTopicMessageStore- Throws:
IOException
-
lookupSubscription
public org.apache.activemq.command.SubscriptionInfo lookupSubscription(String clientId, String subscriptionName) throws IOException - Specified by:
lookupSubscriptionin interfaceTopicMessageStore- Throws:
IOException- See Also:
-
deleteSubscription
- Specified by:
deleteSubscriptionin interfaceTopicMessageStore- Throws:
IOException
-
getAllSubscriptions
- Specified by:
getAllSubscriptionsin interfaceTopicMessageStore- Throws:
IOException
-
getMessageCount
- Specified by:
getMessageCountin interfaceTopicMessageStore- Throws:
IOException
-
getMessageSize
- Specified by:
getMessageSizein interfaceTopicMessageStore- Throws:
IOException
-
getSubscriptionKey
-
getMessageStoreSubStatistics
- Specified by:
getMessageStoreSubStatisticsin interfaceTopicMessageStore
-