Class SomQmgrMessageControlCommand

  • All Implemented Interfaces:
    SomResponseProcessor

    public class SomQmgrMessageControlCommand
    extends SomQmgrCommand
    SOM Command which enables Control operations to be performed on Messages. Commands are: SOM_MESSAGE_STOP SOM_MESSAGE_START SOM_MESSAGE_DELAY_CLEAR SOM_MESSAGE_DELAY_SET SOM_MESSAGE_DELETE SOM_MESSAGE_NONDELIVER SOM_MESSAGE_REPROCESS SOM_MESSAGE_TIMEOUT SOM_MESSAGE_REDIRECT SOM_MESSAGE_RELOAD SOM_MESSAGE_ABORT SOM_MESSAGE_PAUSE SOM_MESSAGE_RESUME
    Author:
    tc
    • Constructor Detail

      • SomQmgrMessageControlCommand

        public SomQmgrMessageControlCommand​(SomSession session,
                                            int op,
                                            java.lang.String chan,
                                            java.lang.String mta,
                                            SomQmgrHandler object,
                                            SomCommandListener listener)
        Create a new SomQmgrMessageControlCommand object
        Parameters:
        session - Session in which to construct command
        op - Operation code
        chan - Channel name for command which may not be null
        mta - MTA name for command which may not be null
        object - Result handler for command which may not be null
        listener - Listener object to be notified when command completes which may be null
      • SomQmgrMessageControlCommand

        public SomQmgrMessageControlCommand​(SomSession session,
                                            int op,
                                            java.lang.String chan,
                                            java.lang.String mta,
                                            SomQmgrSelector sel,
                                            SomQmgrHandler object,
                                            SomCommandListener listener)
        Create a new SomQMgrMessageControlCommand object
        Parameters:
        session - Session in which to construct command
        op - Operation code
        chan - Channel name for command which may not be null
        mta - MTA name for command which may not be null
        sel - Selector object which may be null
        object - Result handler for command which may not be null
        listener - Listener object to be notified when command completes which may be null
    • Method Detail

      • setReason

        public void setReason​(java.lang.String r)
        Set a reason string to be used when non-delivering a message
        Parameters:
        r - Reason string
      • setDelay

        public void setDelay​(SomUtcTime d)
        Set a delay time for a message
        Parameters:
        d - Time to delay message until (UTC Time String)
      • setRecipient

        public void setRecipient​(java.lang.String recip)
        Set the new recipient for message redirection
        Parameters:
        recip - Recipient address to which message should be redirected
      • setForce

        public void setForce​(java.lang.Double forceValue)
        Set the value to be used if forcing a message to have a certain priority.
        Parameters:
        forceValue - the forced priority value to use
      • addSelector

        public void addSelector​(SomQmgrSelector sel)
        Add a selector into a command object
        Parameters:
        sel - Selector to add