public final class LocalTopic extends AbstractLocalDestination implements javax.jms.Topic, LocalTopicMBean
Implementation for a local JMS Topic
closed, closeLock, consumersLock, destinationDef, localConsumers, transactionLock| Constructor and Description |
|---|
LocalTopic(TopicDefinition topicDef)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Release destination resources
|
void |
closeTransaction()
Unlock the destination for transactional update
|
void |
commitChanges(SynchronizationBarrier barrier)
Commit all changes (make sure they are really applied) (ASYNCHRONOUS)
|
String |
getConsumersSummary() |
TopicDefinition |
getDefinition()
Get the queue definition
|
long |
getDispatchedFromTopicCount()
Get the number of messages dispatched from this topic (since startup or last reset)
|
int |
getIndexedSubscriptionsCount()
Get the number of indexed subscriptions on this topic
|
long |
getSentToTopicCount()
Get the number of messages sent to this topic (since startup or last reset)
|
int |
getSize()
Get the destination size (number of contained messages)
|
int |
getSubscriptionsCount()
Get the number of active subscriptions on this topic
|
String |
getTopicName() |
protected boolean |
hasPendingChanges()
Test if this destinations still has some uncommitted changes
|
boolean |
putLocked(AbstractMessage srcMessage,
LocalSession session,
MessageLockSet locks)
Put a new message in the destination.
|
void |
registerConsumer(LocalMessageConsumer consumer)
Register a message consumer on this queue
|
protected boolean |
requiresTransactionalUpdate()
Test if this destination requires transactional semantics to be updated
|
void |
resetStats()
Reset statistics on this destination
|
String |
toString() |
void |
unregisterConsumer(LocalMessageConsumer consumer)
Unregister a message listener
|
void |
unsubscribe(String clientID,
String subscriptionName)
Unsubscribe all durable consumers for a given client ID and subscription name
|
checkNotClosed, checkTransactionLock, commitChanges, getAutoExtendAmount, getAverageCommitTime, getBlockSize, getInitialBlockCount, getJournalOutputBuffer, getMaxBlockCount, getMaxCommitTime, getMaxJournalSize, getMaxNonPersistentMessages, getMaxUncommittedStoreSize, getMaxUnflushedJournalSize, getMaxWriteBatchSize, getMinCommitTime, getName, getRegisteredConsumersCount, getStorageSyncMethod, isClosed, isConsumerRegistered, isPreAllocateFiles, isTemporary, isUseJournal, lookupConsumer, notifyCommitTime, openTransactionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAverageCommitTime, getMaxCommitTime, getMinCommitTime, getRegisteredConsumersCountgetAutoExtendAmount, getBlockSize, getInitialBlockCount, getJournalOutputBuffer, getMaxBlockCount, getMaxJournalSize, getMaxNonPersistentMessages, getMaxUncommittedStoreSize, getMaxUnflushedJournalSize, getMaxWriteBatchSize, getName, getStorageSyncMethod, isPreAllocateFiles, isTemporary, isUseJournalpublic LocalTopic(TopicDefinition topicDef)
public TopicDefinition getDefinition()
public String getTopicName()
getTopicName in interface javax.jms.Topicpublic void registerConsumer(LocalMessageConsumer consumer)
AbstractLocalDestinationregisterConsumer in class AbstractLocalDestinationpublic void unregisterConsumer(LocalMessageConsumer consumer)
AbstractLocalDestinationunregisterConsumer in class AbstractLocalDestinationpublic void unsubscribe(String clientID, String subscriptionName) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic boolean putLocked(AbstractMessage srcMessage, LocalSession session, MessageLockSet locks) throws javax.jms.JMSException
AbstractLocalDestinationputLocked in class AbstractLocalDestinationjavax.jms.JMSExceptionpublic int getSize()
LocalDestinationMBeangetSize in interface LocalDestinationMBeanpublic void resetStats()
LocalDestinationMBeanresetStats in interface LocalDestinationMBeanresetStats in class AbstractLocalDestinationpublic long getSentToTopicCount()
LocalTopicMBeangetSentToTopicCount in interface LocalTopicMBeanpublic long getDispatchedFromTopicCount()
LocalTopicMBeangetDispatchedFromTopicCount in interface LocalTopicMBeanpublic int getSubscriptionsCount()
LocalTopicMBeangetSubscriptionsCount in interface LocalTopicMBeanpublic int getIndexedSubscriptionsCount()
LocalTopicMBeangetIndexedSubscriptionsCount in interface LocalTopicMBeanpublic String toString()
public String getConsumersSummary()
protected boolean requiresTransactionalUpdate()
AbstractLocalDestinationrequiresTransactionalUpdate in class AbstractLocalDestinationprotected boolean hasPendingChanges()
AbstractLocalDestinationhasPendingChanges in class AbstractLocalDestinationpublic final void close()
throws javax.jms.JMSException
AbstractLocalDestinationclose in class AbstractLocalDestinationjavax.jms.JMSExceptionpublic void commitChanges(SynchronizationBarrier barrier) throws javax.jms.JMSException
CommittablecommitChanges in interface Committablebarrier - a synchronization barrierjavax.jms.JMSExceptionpublic void closeTransaction()
CommittablecloseTransaction in interface CommittablecloseTransaction in class AbstractLocalDestinationCopyright © 2021. All rights reserved.