com.ibm.mq

Class MQSendExitChain

  • All Implemented Interfaces:
    MQSendExit


    public class MQSendExitChain
    extends MQExitChain
    implements MQSendExit
    Chains send exits together. The exits are of class MQSendExit; as well as exits written in Java, this includes non-Java send exits made available by means of the MQExternalSendExit class.
    • Field Summary

      • Fields inherited from class com.ibm.mq.jmqi.JmqiObject

        COMP_JM, COMP_JN, COMP_JO
    • Constructor Summary

      Constructors 
      Constructor and Description
      MQSendExitChain()
      The default constructor.
      MQSendExitChain(java.util.List<MQSendExit> collection)
      Constructor which defines the send exits which are to be chained.
    • Constructor Detail

      • MQSendExitChain

        public MQSendExitChain()
        The default constructor. Creates a Send Exit Chain. Use setExitChain() to add an exit chain.
      • MQSendExitChain

        public MQSendExitChain(java.util.List<MQSendExit> collection)
        Constructor which defines the send exits which are to be chained.
        Parameters:
        collection - defines the send exits which are to be chained.
    • Method Detail

      • sendExit

        public byte[] sendExit(MQChannelExit channelExitParms,
                               MQChannelDefinition channelDefinition,
                               byte[] agentBuffer)
        Calls the send exit. This is normally made by the Java client code.
        Specified by:
        sendExit in interface MQSendExit
        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 sendExit method therefore, consists of a single line.
        See Also:
        MQSendExit.sendExit(com.ibm.mq.MQChannelExit, com.ibm.mq.MQChannelDefinition, byte[])
      • setExitChain

        public void setExitChain(java.util.List<?> collection)
        Inserts a collection of send exits into the chain.
        Parameters:
        collection - defines the send exits which are to be chained.
(c) Copyright IBM Corp. 2008, 2016. All Rights Reserved.