|
Sun Adapter for Websphere MQ API | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.mq.MQGetMessageOptions
com.stc.connector.webspheremqadapter.message.GMO
public class GMO
This class subclasses MQGetMessageOptions
to provide
mutators to MQGetMessageOption's public fields, so that they can be
manipulated in the eGate Java Collaboration Editor (which does not permit
direct access to public fields). This class is exposed as part of the eWay
OTD(s).
Also, unlike MQGetMessageOptions, a new GMO object's options defaults to
MQGMO_NONE
, not MQGMO_NO_WAIT
.
com.stc.connector.webspheremqadapter.message.MQOtd
Field Summary |
---|
Fields inherited from class com.ibm.mq.MQGetMessageOptions |
---|
groupStatus, matchOptions, options, resolvedQueueName, segmentation, segmentStatus, waitInterval |
Constructor Summary | |
---|---|
GMO()
Create a GMO object. |
Method Summary | |
---|---|
java.lang.String |
getResolvedQueueName()
Provide access to the content of the output field MQGetMessageOptions.resolvedQueueName . |
char |
getSegmentation()
Provides access to the content of the output field MQGetMessageOptions.segmentation . |
char |
getSegmentationStatus()
Provides access to the content of the output field MQGetMessageOptions.segmentation . |
int |
getWaitValue()
Retrieve the value of the MQGetMessageOptions.waitInterval
variable. |
boolean |
isMessageInGroup()
Determine whether or not the output field MQGetMessageOptions.groupStatus
specifies the retrieved message is in a group. |
boolean |
isMessageLastInGroup()
Determine whether or not the output field {@link com.ibm.mq.MQGetMessageOptions#groupStatus) indicates that the retrieved message is in a group and it is the last message in the group. |
void |
matchOptionsClearAll()
Clear all match options set so far and set match options to MQMO_NONE. |
void |
optionsClearAll()
Clear all option flags set so far and reset options to MQGMO_NONE. |
void |
setMQGMO_ACCEPT_TRUNCATED_MSG(boolean bSet)
Set or unset the MGC.MQGMO_ACCEPT_TRUNCATED_MSG option. |
void |
setMQGMO_ALL_MSGS_AVAILABLE(boolean bSet)
Set or unset the MGC.MQGMO_ALL_MSGS_AVAILABLE option. |
void |
setMQGMO_ALL_SEGMENTS_AVAILABLE(boolean bSet)
Set or unset the MGC.MQGMO_ALL_SEGMENTS_AVAILABLE option. |
void |
setMQGMO_BROWSE_FIRST(boolean bSet)
Set or unset the MGC.MQGMO_BROWSE_FIRST option. |
void |
setMQGMO_BROWSE_MSG_UNDER_CURSOR(boolean bSet)
Set or unset the MGC.MQGMO_BROWSE_MSG_UNDER_CURSOR option. |
void |
setMQGMO_BROWSE_NEXT(boolean bSet)
Set or unset the MGC.MQGMO_BROWSE_NEXT option. |
void |
setMQGMO_COMPLETE_MSG(boolean bSet)
Set or unset the MGC.MQGMO_COMPLETE_MSG option. |
void |
setMQGMO_CONVERT(boolean bSet)
Set or unset the MGC.MQGMO_CONVERT option. |
void |
setMQGMO_FAIL_IF_QUIESCING(boolean bSet)
Set or unset the MGC.MQGMO_FAIL_IF_QUIESCING option. |
void |
setMQGMO_LOCK(boolean bSet)
Set or unset the MGC.MQGMO_LOCK option. |
void |
setMQGMO_LOGICAL_ORDER(boolean bSet)
Set or unset the MGC.MQGMO_LOGICAL_ORDER option. |
void |
setMQGMO_MARK_SKIP_BACKOUT(boolean bSet)
Set or unset the MGC.MQGMO_MARK_SKIP_BACKOUT option. |
void |
setMQGMO_MSG_UNDER_CURSOR(boolean bSet)
Set or unset the MGC.MQGMO_MSG_UNDER_CURSOR option. |
void |
setMQGMO_NO_SYNCPOINT(boolean bSet)
Set or unset the MGC.MQGMO_NO_SYNCPOINT option. |
void |
setMQGMO_NO_WAIT(boolean bSet)
Set or unset the MGC.MQGMO_NO_WAIT option. |
void |
setMQGMO_NONE(boolean bSet)
Set or unset the MGC.MQGMO_NONE option. |
void |
setMQGMO_SYNCPOINT_IF_PERSISTENT(boolean bSet)
Set or unset the MGC.MQGMO_SYNCPOINT_IF_PERSISTENT option. |
void |
setMQGMO_SYNCPOINT(boolean bSet)
Set or unset the MGC.MQGMO_SYNCPOINT option. |
void |
setMQGMO_UNLOCK(boolean bSet)
Set or unset the MGC.MQGMO_UNLOCK option. |
void |
setMQGMO_WAIT(boolean bSet)
Set or unset the MGC.MQGMO_WAIT option. |
void |
setMQMO_MATCH_CORREL_ID(boolean bSet)
Set or unset the MGC.MQMO_MATCH_CORREL_ID option. |
void |
setMQMO_MATCH_GROUP_ID(boolean bSet)
Set or unset the MGC.MQMO_MATCH_GROUP_ID option. |
void |
setMQMO_MATCH_MSG_ID(boolean bSet)
Set or unset the MGC.MQMO_MATCH_MSG_ID option. |
void |
setMQMO_MATCH_MSG_SEQ_NUMBER(boolean bSet)
Set or unset the MGC.MQMO_MATCH_MSG_SEQ_NUMBER option. |
void |
setMQMO_NONE(boolean bSet)
Set or unset the MGC.MQMO_NONE option. |
void |
setUnlimitedWait()
Specify an unlimited time for a get call to wait for a suitable message to arrive. |
void |
setWaitValue(int ms)
Affects the MQGetMessageOptions.waitInterval variable. |
Methods inherited from class com.ibm.mq.MQGetMessageOptions |
---|
readFrom, writeTo |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GMO()
MQGetMessageOptions.MQGetMessageOptions()
Method Detail |
---|
public void setWaitValue(int ms)
MQGetMessageOptions.waitInterval
variable.
The maximum time (in milliseconds) that an MQQueue.get call waits for a
suitable message to arrive (used in conjunction with MQC.MQGMO_WAIT). A
value of MQC.MQWI_UNLIMITED indicates that an unlimited wait is
required.
setWaitValue
in interface IGMO
ms
- # of milliseconds for a get call to wait.MQGetMessageOptions.waitInterval
public int getWaitValue()
MQGetMessageOptions.waitInterval
variable.
getWaitValue
in interface IGMO
int
- Returns the variable value.
public void setUnlimitedWait()
setUnlimitedWait
in interface IGMO
MQGetMessageOptions.waitInterval
public void optionsClearAll()
optionsClearAll
in interface IGMO
MQGetMessageOptions.options
public void matchOptionsClearAll()
matchOptionsClearAll
in interface IGMO
MQGetMessageOptions.matchOptions
public void setMQGMO_NONE(boolean bSet)
setMQGMO_NONE
in interface IGMO
bSet
- true
to set, false
to unset.MQGetMessageOptions.options
public void setMQGMO_WAIT(boolean bSet)
setMQGMO_WAIT
in interface IGMO
bSet
- true
to set, false
to unset.MQGetMessageOptions.options
public void setMQGMO_NO_WAIT(boolean bSet)
setMQGMO_NO_WAIT
in interface IGMO
bSet
- true
to set, false
to unset.MQGetMessageOptions.options
public void setMQGMO_SYNCPOINT(boolean bSet)
setMQGMO_SYNCPOINT
in interface IGMO
bSet
- true
to set, false
to unset.MQGetMessageOptions.options
public void setMQGMO_NO_SYNCPOINT(boolean bSet)
setMQGMO_NO_SYNCPOINT
in interface IGMO
bSet
- true
to set, false
to unset.MQGetMessageOptions.options
public void setMQGMO_BROWSE_FIRST(boolean bSet)
setMQGMO_BROWSE_FIRST
in interface IGMO
bSet
- true
to set, false
to unset.MQGetMessageOptions.options
public void setMQGMO_BROWSE_NEXT(boolean bSet)
setMQGMO_BROWSE_NEXT
in interface IGMO
bSet
- true
to set, false
to unset.MQGetMessageOptions.options
public void setMQGMO_BROWSE_MSG_UNDER_CURSOR(boolean bSet)
setMQGMO_BROWSE_MSG_UNDER_CURSOR
in interface IGMO
bSet
- true
to set, false
to unset.MQGetMessageOptions.options
public void setMQGMO_LOCK(boolean bSet)
setMQGMO_LOCK
in interface IGMO
bSet
- true
to set, false
to unset.MQGetMessageOptions.options
public void setMQGMO_UNLOCK(boolean bSet)
setMQGMO_UNLOCK
in interface IGMO
bSet
- true
to set, false
to unset.MQGetMessageOptions.options
public void setMQGMO_ACCEPT_TRUNCATED_MSG(boolean bSet)
setMQGMO_ACCEPT_TRUNCATED_MSG
in interface IGMO
bSet
- true
to set, false
to unset.MQGetMessageOptions.options
public void setMQGMO_FAIL_IF_QUIESCING(boolean bSet)
setMQGMO_FAIL_IF_QUIESCING
in interface IGMO
bSet
- true
to set, false
to unset.MQGetMessageOptions.options
public void setMQGMO_CONVERT(boolean bSet)
setMQGMO_CONVERT
in interface IGMO
bSet
- true
to set, false
to unset.MQGetMessageOptions.options
public void setMQGMO_SYNCPOINT_IF_PERSISTENT(boolean bSet)
setMQGMO_SYNCPOINT_IF_PERSISTENT
in interface IGMO
bSet
- true
to set, false
to unset.MQGetMessageOptions.options
public void setMQGMO_MARK_SKIP_BACKOUT(boolean bSet)
setMQGMO_MARK_SKIP_BACKOUT
in interface IGMO
bSet
- true
to set, false
to unset.MQGetMessageOptions.options
public void setMQGMO_MSG_UNDER_CURSOR(boolean bSet)
setMQGMO_MSG_UNDER_CURSOR
in interface IGMO
bSet
- true
to set, false
to unset.MQGetMessageOptions.options
public void setMQGMO_LOGICAL_ORDER(boolean bSet)
setMQGMO_LOGICAL_ORDER
in interface IGMO
bSet
- true
to set, false
to unset.MQGetMessageOptions.options
public void setMQGMO_COMPLETE_MSG(boolean bSet)
setMQGMO_COMPLETE_MSG
in interface IGMO
bSet
- true
to set, false
to unset.MQGetMessageOptions.options
public void setMQGMO_ALL_MSGS_AVAILABLE(boolean bSet)
setMQGMO_ALL_MSGS_AVAILABLE
in interface IGMO
bSet
- true
to set, false
to unset.MQGetMessageOptions.options
public void setMQGMO_ALL_SEGMENTS_AVAILABLE(boolean bSet)
setMQGMO_ALL_SEGMENTS_AVAILABLE
in interface IGMO
bSet
- true
to set, false
to unset.MQGetMessageOptions.options
public void setMQMO_MATCH_MSG_ID(boolean bSet)
setMQMO_MATCH_MSG_ID
in interface IGMO
bSet
- true
to set, false
to unset.MQGetMessageOptions.matchOptions
public void setMQMO_MATCH_CORREL_ID(boolean bSet)
setMQMO_MATCH_CORREL_ID
in interface IGMO
bSet
- true
to set, false
to unset.MQGetMessageOptions.matchOptions
public void setMQMO_MATCH_GROUP_ID(boolean bSet)
setMQMO_MATCH_GROUP_ID
in interface IGMO
bSet
- true
to set, false
to unset.MQGetMessageOptions.matchOptions
public void setMQMO_MATCH_MSG_SEQ_NUMBER(boolean bSet)
setMQMO_MATCH_MSG_SEQ_NUMBER
in interface IGMO
bSet
- true
to set, false
to unset.MQGetMessageOptions.matchOptions
public void setMQMO_NONE(boolean bSet)
setMQMO_NONE
in interface IGMO
bSet
- true
to set, false
to unset.MQGetMessageOptions.matchOptions
public java.lang.String getResolvedQueueName()
MQGetMessageOptions.resolvedQueueName
.
getResolvedQueueName
in interface IGMO
String
- Returns the content of the output field.
public char getSegmentation()
MQGetMessageOptions.segmentation
.
getSegmentation
in interface IGMO
char
- Returns the content of the output field.
public char getSegmentationStatus()
MQGetMessageOptions.segmentation
.
getSegmentationStatus
in interface IGMO
char
- Returns the content of the output field.
public boolean isMessageInGroup()
MQGetMessageOptions.groupStatus
specifies the retrieved message is in a group.
isMessageInGroup
in interface IGMO
Boolean
- Returns true if the output field is in the group; false otherwise.
com.ibm.mq.MQC.MQGS_NOT_IN_GROUP
public boolean isMessageLastInGroup()
isMessageLastInGroup
in interface IGMO
true
if the message is in the group, and it is the
last message in the group; false
indicates the
message is in the group, but is not the last message in the
group.
|
Sun Adapter for Websphere MQ API | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |