public class SomQmgrMessageControlCommand extends SomQmgrCommand
Modifier and Type | Field and Description |
---|---|
static int |
SOM_MESSAGE_ABORT |
static int |
SOM_MESSAGE_DELAY_CLEAR |
static int |
SOM_MESSAGE_DELAY_SET |
static int |
SOM_MESSAGE_DELETE |
static int |
SOM_MESSAGE_FORCE |
static int |
SOM_MESSAGE_NONDELIVER |
static int |
SOM_MESSAGE_PAUSE |
static int |
SOM_MESSAGE_REDIRECT |
static int |
SOM_MESSAGE_RELOAD |
static int |
SOM_MESSAGE_REPROCESS |
static int |
SOM_MESSAGE_RESUME |
static int |
SOM_MESSAGE_START |
static int |
SOM_MESSAGE_STOP |
static int |
SOM_MESSAGE_TIMEOUT |
opListener, opSession
Constructor and Description |
---|
SomQmgrMessageControlCommand(SomSession session,
int op,
java.lang.String chan,
java.lang.String mta,
SomQmgrHandler object,
SomCommandListener listener)
Create a new SomQmgrMessageControlCommand object
|
SomQmgrMessageControlCommand(SomSession session,
int op,
java.lang.String chan,
java.lang.String mta,
SomQmgrSelector sel,
SomQmgrHandler object,
SomCommandListener listener)
Create a new SomQMgrMessageControlCommand object
|
Modifier and Type | Method and Description |
---|---|
void |
addSelector(SomQmgrSelector sel)
Add a selector into a command object
|
java.lang.String |
getCommandString()
Return string representation of command
|
java.lang.String |
getSubcommand() |
void |
setDelay(SomUtcTime d)
Set a delay time for a message
|
void |
setForce(java.lang.Double forceValue)
Set the value to be used if forcing a message to have a certain priority.
|
void |
setReason(java.lang.String r)
Set a reason string to be used when non-delivering a message
|
void |
setRecipient(java.lang.String recip)
Set the new recipient for message redirection
|
getHandler, processResponse
dispatch, getSession, notifyListener, notifyListener, notifyListener
public static final int SOM_MESSAGE_STOP
public static final int SOM_MESSAGE_START
public static final int SOM_MESSAGE_DELAY_CLEAR
public static final int SOM_MESSAGE_DELAY_SET
public static final int SOM_MESSAGE_DELETE
public static final int SOM_MESSAGE_NONDELIVER
public static final int SOM_MESSAGE_REPROCESS
public static final int SOM_MESSAGE_TIMEOUT
public static final int SOM_MESSAGE_REDIRECT
public static final int SOM_MESSAGE_RELOAD
public static final int SOM_MESSAGE_ABORT
public static final int SOM_MESSAGE_PAUSE
public static final int SOM_MESSAGE_RESUME
public static final int SOM_MESSAGE_FORCE
public SomQmgrMessageControlCommand(SomSession session, int op, java.lang.String chan, java.lang.String mta, SomQmgrHandler object, SomCommandListener listener)
session
- Session in which to construct commandop
- Operation codechan
- Channel name for command which may not be nullmta
- MTA name for command which may not be nullobject
- Result handler for command which may not be nulllistener
- Listener object to be notified when command completes which may be nullpublic SomQmgrMessageControlCommand(SomSession session, int op, java.lang.String chan, java.lang.String mta, SomQmgrSelector sel, SomQmgrHandler object, SomCommandListener listener)
session
- Session in which to construct commandop
- Operation codechan
- Channel name for command which may not be nullmta
- MTA name for command which may not be nullsel
- Selector object which may be nullobject
- Result handler for command which may not be nulllistener
- Listener object to be notified when command completes which may be nullpublic void setReason(java.lang.String r)
r
- Reason stringpublic void setDelay(SomUtcTime d)
d
- Time to delay message until (UTC Time String)public void setRecipient(java.lang.String recip)
recip
- Recipient address to which message should be redirectedpublic void setForce(java.lang.Double forceValue)
forceValue
- the forced priority value to usepublic java.lang.String getSubcommand() throws SomException
SomException
public void addSelector(SomQmgrSelector sel)
sel
- Selector to addpublic java.lang.String getCommandString() throws SomException
getCommandString
in class SomCommand
SomException
- on errorVersion: 18.0v6-0
Copyright (c) 2017-2020 Isode