Class MQReceiveExitChain
java.lang.Object
com.ibm.mq.jmqi.JmqiObject
com.ibm.mq.MQExitChain
com.ibm.mq.MQReceiveExitChain
- All Implemented Interfaces:
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
Fields inherited from class com.ibm.mq.jmqi.JmqiObject
COMP_JM, COMP_JN, COMP_JO -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]receiveExit(MQChannelExit channelExitParms, MQChannelDefinition channelDefinition, byte[] agentBuffer) Calls the receive exit.voidsetExitChain(List collection) Inserts a collection of receive exits into the chain.Methods inherited from class MQExitChain
getExitChain, getReasonCodeMethods inherited from class com.ibm.mq.jmqi.JmqiObject
getJmqiEnvironment
-
Constructor Details
-
MQReceiveExitChain
public MQReceiveExitChain()The default constructor. Creates a Receive Exit Chain. -
MQReceiveExitChain
Constructor.- Parameters:
collection- a List object which defines the receive exits which are to be chained.
-
-
Method Details
-
receiveExit
public byte[] receiveExit(MQChannelExit channelExitParms, MQChannelDefinition channelDefinition, byte[] agentBuffer) Calls the receive exit. This is normally made by the Java client code.- Specified by:
receiveExitin interfaceMQReceiveExit- 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 IBM MQ Client for Java can process the data. The simplest receiveExit method therefore, consists of a single line.
- See Also:
-
setExitChain
Inserts a collection of receive exits into the chain.- Parameters:
collection- a List object which defines the receive exits which are to be chained.
-