public class TopicInfo extends DestinationInfo
ALL_TYPE, DEST_GET_ALL, DEST_GET_DYNAMIC, DEST_GET_NOTEMP, DEST_GET_STATIC, MSG_TRACE_BASIC, MSG_TRACE_DETAIL, MSG_TRACE_NONE, OVERFLOW_DEFAULT, OVERFLOW_DISCARD_OLD, OVERFLOW_REJECT_INCOMING, PREFETCH_DEFAULT, PREFETCH_NONE, QUEUE_TYPE, TOPIC_TYPE
Constructor and Description |
---|
TopicInfo(java.lang.String topicName)
The public constructor creates a TopicInfo object with the given name.
|
Modifier and Type | Method and Description |
---|---|
void |
addExportTransport(java.lang.String transportName)
Add a new export transport to the list of transports this destination
exports messages to.
|
boolean |
areExportTransportsInherited()
Deprecated.
This method has been misnamed and replaced
by
isExportTransportsInherited() . |
static TopicInfo |
from(javax.management.openmbean.CompositeData cd)
For Internal use only, may be removed or deprecated in future.
|
int |
getActiveDurableCount()
Get the current number of active durable consumers for this topic.
|
java.lang.String |
getChannel()
Deprecated.
As of release 8.3
|
int |
getDurableCount()
Deprecated.
Use
getDurableSubscriptionCount() instead. |
int |
getDurableSubscriptionCount()
Get the current number of durable subscriptions for this topic.
|
java.lang.String[] |
getExportTransports()
Get the names of the transports that this topic exports messages
on.
|
int |
getSubscriberCount()
Get the current number of active subscribers for this topic.
|
int |
getSubscriptionCount()
Get the current number of subscriptions for this topic.
|
boolean |
isChannelInherited()
Deprecated.
As of release 8.3
|
boolean |
isExportTransportsInherited()
Determines if the list of transports this topic exports messages on was
inherited from a parent topic or whether it was set on the topic
directly.
|
boolean |
isMulticastEnabled()
Deprecated.
As of release 8.3
|
void |
removeExportTransport(java.lang.String transportName)
Remove an export transport from the list of transports this destination
exports messages to.
|
void |
setChannel(java.lang.String channel)
Deprecated.
As of release 8.3
|
java.lang.String |
toString() |
addImportTransport, areBridgeTargetsInherited, areImportTransportsInherited, connectionID, getBridgeTargets, getConsumerCount, getDescription, getExpiryOverride, getFlowControlMaxBytes, getImportTransports, getInboundStatistics, getJNDINames, getMaxBytes, getMaxMsgs, getMsgTrace, getName, getOutboundStatistics, getOverflowPolicy, getPendingMessageCount, getPendingMessageSize, getPendingPersistentMessageCount, getPendingPersistentMessageSize, getPrefetch, getRedeliveryDelay, getStore, isBridgeTargetsInherited, isExpiryOverrideInherited, isFailsafe, isFailsafeInherited, isFlowControlMaxBytesInherited, isGlobal, isGlobalInherited, isImportTransportsInherited, isMaxBytesInherited, isMaxMsgsInherited, isMsgTraceInherited, isOverflowPolicyInherited, isPrefetchInherited, isRedeliveryDelayInherited, isSecure, isSecureInherited, isSenderName, isSenderNameEnforced, isSenderNameEnforcedInherited, isSenderNameInherited, isStatic, isStoreInherited, isTemporary, removeImportTransport, setDescription, setExpiryOverride, setFailsafe, setFlowControlMaxBytes, setGlobal, setMaxBytes, setMaxMsgs, setMsgTrace, setOverflowPolicy, setPrefetch, setRedeliveryDelay, setSecure, setSenderName, setSenderNameEnforced, setStore, statString
public TopicInfo(java.lang.String topicName)
topicName
- The name for the topic being created.public java.lang.String[] getExportTransports()
@Deprecated public boolean areExportTransportsInherited()
isExportTransportsInherited()
.public boolean isExportTransportsInherited()
public void addExportTransport(java.lang.String transportName) throws TibjmsAdminInvalidNameException
transportName
- the name of the transport.TibjmsAdminInvalidNameException
- if transportName is not a legal
transport namepublic void removeExportTransport(java.lang.String transportName) throws TibjmsAdminInvalidNameException, TibjmsAdminException
transportName
- the name of the transport.TibjmsAdminInvalidNameException
- if transportName is not a legal
transport nameTibjmsAdminException
- if export transports is inheritedpublic int getSubscriptionCount()
public int getDurableSubscriptionCount()
public int getSubscriberCount()
@Deprecated public int getDurableCount()
getDurableSubscriptionCount()
instead.public int getActiveDurableCount()
@Deprecated public void setChannel(java.lang.String channel)
channel
- the multicast channel for this topic,
null
or empty to remove the multicast channel.@Deprecated public java.lang.String getChannel()
@Deprecated public boolean isChannelInherited()
true
if the channel property is inherited.@Deprecated public boolean isMulticastEnabled()
true
if this topic is multicast-enabled.public java.lang.String toString()
toString
in class java.lang.Object
public static TopicInfo from(javax.management.openmbean.CompositeData cd) throws java.lang.Exception
java.lang.IllegalArgumentException
- if CompositeType does not match
or if a null CompositeData is passed.java.lang.Exception
Copyright © Cloud Software Group, Inc. All rights reserved