public class ConsumerInfo
extends java.lang.Object
ConsumerInfo represents JMS consumer informaton used by JMS
message management APIs to provide consumer information to management clients
in CompositeData format.
CompositeData,
JMSDurableSubscriberRuntimeMBean| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getClientID() |
Gets the client ID.
|
protected java.util.Map |
getCompositeDataMap() |
|
protected javax.management.openmbean.CompositeType |
getCompositeType() |
|
java.lang.String |
getConnectionAddress() |
Gets the connection address of the client consumer.
|
java.lang.String |
getName() |
Gets the name of the consumer.
|
java.lang.String |
getSelector() |
Gets the selector associated with a consumer.
|
boolean |
isDurable() |
Specifies whether the subscriber has a durable or non-durable subscription.
|
boolean |
isNoLocal() |
Specifies whether a subscriber that uses the same JMS connection to publish and subscribe to a single topic
receives the messages it publishes.
|
protected void |
readCompositeData(javax.management.openmbean.CompositeData cd) |
|
void |
setClientID(java.lang.String clientID) |
Sets the client ID.
|
void |
setConnectionAddress(java.lang.String connectionAddress) |
Sets the connection address attribute of the client consumer.
|
void |
setDurable(boolean durable) |
Sets the isDurable flag.
|
void |
setName(java.lang.String name) |
Sets the name attribute for a consumer.
|
void |
setNoLocal(boolean noLocal) |
Sets the
noLocal attribute. |
void |
setSelector(java.lang.String selector) |
Sets the selector attribute for this consumer.
|
javax.management.openmbean.CompositeData |
toCompositeData() |
Converts a
ConsumerInfo instance to a CompositeData representation. |
public javax.management.openmbean.CompositeData toCompositeData()
throws javax.management.openmbean.OpenDataException
Converts a ConsumerInfo instance to a CompositeData representation.
javax.management.openmbean.OpenDataException - Thrown when an error occurs while constructing the CompositeData
representation.public java.lang.String getClientID()
Gets the client ID.
public void setClientID(java.lang.String clientID)
Sets the client ID.
clientID - the clientID.public java.lang.String getConnectionAddress()
Gets the connection address of the client consumer.
public void setConnectionAddress(java.lang.String connectionAddress)
Sets the connection address attribute of the client consumer.
connectionAddress - a connection address.public boolean isDurable()
Specifies whether the subscriber has a durable or non-durable subscription.
public void setDurable(boolean durable)
Sets the isDurable flag.
durable - The durable to set.public java.lang.String getName()
Gets the name of the consumer.
public void setName(java.lang.String name)
Sets the name attribute for a consumer.
name - the name for the consumer.public boolean isNoLocal()
Specifies whether a subscriber that uses the same JMS connection to publish and subscribe to a single topic receives the messages it publishes.
public void setNoLocal(boolean noLocal)
Sets the noLocal attribute.
noLocal - true if the subscriber should not receive the messages it publishes.
the noLocal to set.public java.lang.String getSelector()
Gets the selector associated with a consumer.
public void setSelector(java.lang.String selector)
Sets the selector attribute for this consumer.
selector - the selector.protected void readCompositeData(javax.management.openmbean.CompositeData cd)
protected java.util.Map getCompositeDataMap()
protected javax.management.openmbean.CompositeType getCompositeType()
throws javax.management.openmbean.OpenDataException
javax.management.openmbean.OpenDataException