|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.mqe.MQe | +--com.ibm.mqe.MQeRule | +--com.ibm.mqe.MQeQueueManagerRule | +--examples.midp.exampleapp.messageservice.QueueManagerRules
Example queue manager rules class.
- starts a background thread to trigger transmission of messages at a specified interval.
- transmission can also be triggered by notifiying the monitor object triggerTransmit
Field Summary | |
protected static java.lang.Thread |
th
|
protected int |
triggerInterval
|
static java.lang.Object |
triggerTransmit
|
static short[] |
version
|
Constructor Summary | |
QueueManagerRules()
|
Method Summary | |
void |
activate(java.lang.Object thisOwner)
Called when the rule is activated. |
void |
queueManagerClose()
Called when a Queue manager Close is called. |
void |
run()
Background thread run method. |
void |
stopTriggerThread()
Stop the thread that is triggering transmission. |
Methods inherited from class com.ibm.mqe.MQeQueueManagerRule |
activateQueues, addQueue, deleteMessage, getMessage, getRetryCount, peerConnection, putMessage, queueManagerActivate, removeQueue, transmit, triggerTransmission, undo |
Methods inherited from class com.ibm.mqe.MQeRule |
close, newRule |
Methods inherited from class com.ibm.mqe.MQe |
abbreviate, alias, asciiToByte, byteToAscii, byteToHex, byteToHex, byteToInt, byteToLong, byteToShort, byteToUnicode, fileSeparator, getEventLogHandler, hexToAscii, hexToByte, intToByte, isCLDC, loadClass, loadObject, log, setEventLogHandler, setLoader, sliceByteArray, type, unicodeToByte, uniqueValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static short[] version
protected int triggerInterval
protected static java.lang.Thread th
public static java.lang.Object triggerTransmit
Constructor Detail |
public QueueManagerRules()
Method Detail |
public void activate(java.lang.Object thisOwner)
activate
in class MQeRule
thisOwner
- The owner of this object
public void queueManagerClose() throws java.lang.Exception
queueManagerClose
in class MQeQueueManagerRule
java.lang.Exception
MQeQueueManagerRule.queueManagerActivate()
public void run()
run
in interface java.lang.Runnable
public void stopTriggerThread()
|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |