com.ibm.mq

Class MQReceiveExitChain

  1. java.lang.Object
  2. extended bycom.ibm.mq.jmqi.JmqiObject
  3. extended bycom.ibm.mq.MQExitChain
  4. extended bycom.ibm.mq.MQReceiveExitChain
All implemented interfaces:
MQReceiveExit

  1. public class MQReceiveExitChain
  2. extends MQExitChain
  3. implements MQReceiveExit
Chains receive exits together. The exits are of class MQReceiveExit; as well as exits written in Java, this includes non-Java receive exits made available by means of the MQExternalReceiveExit class.

Field Summary

Modifier and Type Field and Description
  1. static
  2. java.lang.String
sccsid
Fields inherited from class com.ibm.mq.jmqi.JmqiObject
COMP_JM, COMP_JN, COMP_JO

Constructor Summary

Constructor and Description
MQReceiveExitChain()
The default constructor.
MQReceiveExitChain(java.util.List collection)
Constructor.

Method Summary

Modifier and Type Method and Description
  1. byte[]
receiveExit(MQChannelExit channelExitParms,MQChannelDefinition channelDefinition,byte[] agentBuffer)
Calls the receive exit.
  1. void
setExitChain(java.util.List collection)
Inserts a collection of receive exits into the chain.
Methods inherited from class com.ibm.mq.MQExitChain
getExitChain, getReasonCode
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

sccsid

  1. public static final java.lang.String sccsid
See Also:
exclude
Code Identifier

Constructor Detail

MQReceiveExitChain

  1. public MQReceiveExitChain()
The default constructor. Creates a Receive Exit Chain.

MQReceiveExitChain

  1. public MQReceiveExitChain(java.util.List collection)
Constructor.
Parameters:
collection - a List object which defines the receive exits which are to be chained.

Method Detail

receiveExit

  1. public byte[] receiveExit(MQChannelExit channelExitParms,
  2. MQChannelDefinition channelDefinition,
  3. byte[] agentBuffer)
Calls the receive exit. This is normally made by the Java client code.
Specified by:
receiveExit in interface MQReceiveExit
Parameters:
channelExitParms - the definition of the chain of exits.
channelDefinition - the definition of the channel.
agentBuffer - the message being passed into the chain of exits.
Returns:
the data to be processed. If the exit response code (in channelExitParms is MQXCC_OK the WebSphere MQ Client for Java can process the data. The simplest receiveExit method therefore, consists of a single line.
See Also:

setExitChain

  1. public void setExitChain(java.util.List collection)
Inserts a collection of receive exits into the chain.
Parameters:
collection - a List object which defines the receive exits which are to be chained.