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:
- Service, MessageStore, TopicMessageStore
public class JDBCTopicMessageStore
- extends JDBCMessageStore
- implements TopicMessageStore
|
Method Summary |
void |
acknowledge(ConnectionContext context,
java.lang.String clientId,
java.lang.String subscriptionName,
MessageId messageId,
MessageAck ack)
|
void |
addSubsciption(SubscriptionInfo subscriptionInfo,
boolean retroactive)
|
void |
complete(java.lang.String clientId,
java.lang.String subscriptionName)
|
void |
deleteSubscription(java.lang.String clientId,
java.lang.String subscriptionName)
|
SubscriptionInfo[] |
getAllSubscriptions()
|
long[] |
getCachedStoreSequenceId(TransactionContext transactionContext,
ActiveMQDestination destination,
MessageId messageId)
|
int |
getMessageCount(java.lang.String clientId,
java.lang.String subscriberName)
|
protected java.lang.String |
getSubscriptionKey(java.lang.String clientId,
java.lang.String subscriberName)
|
SubscriptionInfo |
lookupSubscription(java.lang.String clientId,
java.lang.String subscriptionName)
|
protected void |
onAdd(MessageId messageId,
long sequenceId,
byte priority)
|
void |
pendingCompletion(java.lang.String clientId,
java.lang.String subscriptionName,
long sequenceId,
byte priority)
|
void |
recoverNextMessages(java.lang.String clientId,
java.lang.String subscriptionName,
int maxReturned,
MessageRecoveryListener listener)
|
void |
recoverSubscription(java.lang.String clientId,
java.lang.String subscriptionName,
MessageRecoveryListener listener)
|
void |
resetBatching(java.lang.String clientId,
java.lang.String subscriptionName)
|
| Methods inherited from class org.apache.activemq.store.jdbc.JDBCMessageStore |
addMessage, addMessageReference, getMessage, getMessageCount, getMessageReference, recover, recoverNextMessages, removeAllMessages, removeMessage, resetBatching, setBatch, setPrioritizedMessages |
| Methods inherited from class org.apache.activemq.store.AbstractMessageStore |
addMessage, asyncAddQueueMessage, asyncAddQueueMessage, asyncAddTopicMessage, asyncAddTopicMessage, dispose, getDestination, isEmpty, isPrioritizedMessages, removeAsyncMessage, setMemoryUsage, start, stop |
| 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.store.MessageStore |
addMessage, addMessage, asyncAddQueueMessage, asyncAddQueueMessage, asyncAddTopicMessage, asyncAddTopicMessage, dispose, getDestination, getMessage, getMessageCount, isEmpty, isPrioritizedMessages, recover, recoverNextMessages, removeAllMessages, removeAsyncMessage, removeMessage, resetBatching, setBatch, setMemoryUsage, setPrioritizedMessages |
PROPERTY_SEQUENCE_ID_CACHE_SIZE
public static final java.lang.String PROPERTY_SEQUENCE_ID_CACHE_SIZE
- See Also:
- Constant Field Values
JDBCTopicMessageStore
public JDBCTopicMessageStore(JDBCPersistenceAdapter persistenceAdapter,
JDBCAdapter adapter,
WireFormat wireFormat,
ActiveMQTopic topic,
ActiveMQMessageAudit audit)
throws java.io.IOException
- Throws:
java.io.IOException
acknowledge
public void acknowledge(ConnectionContext context,
java.lang.String clientId,
java.lang.String subscriptionName,
MessageId messageId,
MessageAck ack)
throws java.io.IOException
- Specified by:
acknowledge in interface TopicMessageStore
- Throws:
java.io.IOException
getCachedStoreSequenceId
public long[] getCachedStoreSequenceId(TransactionContext transactionContext,
ActiveMQDestination destination,
MessageId messageId)
throws java.sql.SQLException,
java.io.IOException
- Throws:
java.sql.SQLException
java.io.IOException
recoverSubscription
public void recoverSubscription(java.lang.String clientId,
java.lang.String subscriptionName,
MessageRecoveryListener listener)
throws java.lang.Exception
- Specified by:
recoverSubscription in interface TopicMessageStore
- Throws:
java.lang.Exception
recoverNextMessages
public void recoverNextMessages(java.lang.String clientId,
java.lang.String subscriptionName,
int maxReturned,
MessageRecoveryListener listener)
throws java.lang.Exception
- Specified by:
recoverNextMessages in interface TopicMessageStore
- Throws:
java.lang.Exception
resetBatching
public void resetBatching(java.lang.String clientId,
java.lang.String subscriptionName)
- Specified by:
resetBatching in interface TopicMessageStore
pendingCompletion
public void pendingCompletion(java.lang.String clientId,
java.lang.String subscriptionName,
long sequenceId,
byte priority)
complete
public void complete(java.lang.String clientId,
java.lang.String subscriptionName)
onAdd
protected void onAdd(MessageId messageId,
long sequenceId,
byte priority)
- Overrides:
onAdd in class JDBCMessageStore
addSubsciption
public void addSubsciption(SubscriptionInfo subscriptionInfo,
boolean retroactive)
throws java.io.IOException
- Specified by:
addSubsciption in interface TopicMessageStore
- Throws:
java.io.IOException
lookupSubscription
public SubscriptionInfo lookupSubscription(java.lang.String clientId,
java.lang.String subscriptionName)
throws java.io.IOException
- Specified by:
lookupSubscription in interface TopicMessageStore
- Throws:
java.io.IOException- See Also:
TopicMessageStore.lookupSubscription(String,
String)
deleteSubscription
public void deleteSubscription(java.lang.String clientId,
java.lang.String subscriptionName)
throws java.io.IOException
- Specified by:
deleteSubscription in interface TopicMessageStore
- Throws:
java.io.IOException
getAllSubscriptions
public SubscriptionInfo[] getAllSubscriptions()
throws java.io.IOException
- Specified by:
getAllSubscriptions in interface TopicMessageStore
- Throws:
java.io.IOException
getMessageCount
public int getMessageCount(java.lang.String clientId,
java.lang.String subscriberName)
throws java.io.IOException
- Specified by:
getMessageCount in interface TopicMessageStore
- Throws:
java.io.IOException
getSubscriptionKey
protected java.lang.String getSubscriptionKey(java.lang.String clientId,
java.lang.String subscriberName)
Copyright © 2005-2015 Red Hat, Inc.. All Rights Reserved.