Class SomQmgrMessageControlCommand

java.lang.Object
com.isode.som.SomCommand
com.isode.som.qmgr.SomQmgrCommand
com.isode.som.qmgr.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
  • Field Details

  • Constructor Details

    • SomQmgrMessageControlCommand

      public SomQmgrMessageControlCommand(SomSession session, int op, String chan, 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, String chan, 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 Details

    • setReason

      public void setReason(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(String recip)
      Set the new recipient for message redirection
      Parameters:
      recip - Recipient address to which message should be redirected
    • setForce

      public void setForce(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
    • getSubcommand

      public String getSubcommand() throws SomException
      Throws:
      SomException
    • addSelector

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

      public String getCommandString() throws SomException
      Return string representation of command
      Overrides:
      getCommandString in class SomCommand
      Returns:
      Command string
      Throws:
      SomException - on error