public class MQSubscription extends MQManagedObject
HSUB reference. Under
normal operating circumstances the user will not use or modify the object. It is a sub class of
MQManagedObject and in this fashion can take advantage of the close features offered by
the base class.alternateUserId, closeOptions, connectionReference, isOpen, name, openOptions| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAlternateUserId()
This property is not valid for an MQSubscription.
|
java.lang.String |
getAttributeString(int aSelector,
int length)
Although available on the
MQManagedObject base class, this method has no relevance upon
MQSubscription. |
java.lang.String |
getDescription()
This property is not valid for an MQSubscription.
|
int |
getOpenOptions()
This property is not valid for an MQSubscription.
|
void |
inquire(int[] selectors,
int[] intAttrs,
byte[] charAttrs)
Although available on the
MQManagedObject base class, this method has no relevance upon
MQSubscription. |
int |
requestPublicationUpdate(int options)
Requests an update publication to be sent for the current topic.
|
void |
set(int[] selectors,
int[] intAttrs,
byte[] charAttrs)
Although available on the
MQManagedObject base class, this method has no relevance upon
MQSubscription. |
void |
setAttributeString(int aSelector,
java.lang.String aValue,
int length)
Although available on the
MQManagedObject base class, this method has no relevance upon
MQSubscription. |
close, getCloseOptions, getConnectionReference, getName, getResolvedObjectString, getResolvedQName, getResolvedType, inquire, isOpen, setCloseOptionspublic int requestPublicationUpdate(int options)
throws MQException
CMQC.MQSO_PUBLICATIONS_ON_REQUEST option. If the queue manager has a
retained publication for the topic, this is sent to the subscriber.
The method returns the number of retained publications to be sent to the subscription queue or multicast address. There is no guarantee that this many messages will be available for the application to get, especially if they are non-persistent messages, or if the transport being used is multicast.
There may be more than one publication if the subscribed topic contained a wildcard. If no wildcards were present in the topic string when the subscription was made, then only one publication will be sent as a result of this call.
options - This parameter maps directly to the options field of the
MQSRO structure. Any or none of the following options can be specified.
CMQC.MQSRO_FAIL_IF_QUIESCING
The method fails if the queue manager is in a quiescent state. On z/OS, for a CICS or IMS application, this option also forces the method to fail if the connection is in a quiescent state.
CMQC.MQSRO_NONE
If none of the options described above are required, this option can be used. Use this value to indicate that no other options have been specified.
MQException - If the call fails.public void inquire(int[] selectors,
int[] intAttrs,
byte[] charAttrs)
throws MQException
MQManagedObject base class, this method has no relevance upon
MQSubscription.inquire in class MQManagedObjectselectors - Ignored as this method is not relevant to this class.intAttrs - Ignored as this method is not relevant to this class.charAttrs - Ignored as this method is not relevant to this class.MQException - if the inquire fails.MQManagedObject.inquire(int[], int[], byte[])public void set(int[] selectors,
int[] intAttrs,
byte[] charAttrs)
throws MQException
MQManagedObject base class, this method has no relevance upon
MQSubscription.set in class MQManagedObjectselectors - Ignored as this method is not relevant to this class.intAttrs - Ignored as this method is not relevant to this class.charAttrs - Ignored as this method is not relevant to this class.MQException - if the set call fails.MQManagedObject.set(int[], int[], byte[])public java.lang.String getAttributeString(int aSelector,
int length)
throws MQException
MQManagedObject base class, this method has no relevance upon
MQSubscription.getAttributeString in class MQManagedObjectaSelector - Ignored as this method is not relevant to this class.length - Ignored as this method is not relevant to this class.MQException - if the call fails.MQManagedObject.getAttributeString(int, int)public void setAttributeString(int aSelector,
java.lang.String aValue,
int length)
throws MQException
MQManagedObject base class, this method has no relevance upon
MQSubscription.setAttributeString in class MQManagedObjectaSelector - Ignored as this method is not relevant to this class.aValue - Ignored as this method is not relevant to this class.length - Ignored as this method is not relevant to this class.MQException - if the call fails.MQManagedObject.setAttributeString(int, String, int)public java.lang.String getAlternateUserId()
throws MQException
getAlternateUserId in class MQManagedObjectMQException - If the call fails.MQManagedObject.getAlternateUserId()public java.lang.String getDescription()
throws MQException
getDescription in class MQManagedObjectMQException - If this method is called after the resource has been closed, to indicate
that the resource is no longer available.MQManagedObject.getDescription()public int getOpenOptions()
throws MQException
getOpenOptions in class MQManagedObjectMQException - If the call fails.MQManagedObject.getOpenOptions()