public class SomQmgrMtaControlCommand extends SomQmgrCommand
Modifier and Type | Field and Description |
---|---|
static int |
SOM_MTA_CONNECT |
static int |
SOM_MTA_DELAY_CLEAR |
static int |
SOM_MTA_DELAY_SET |
static int |
SOM_MTA_DELETE |
static int |
SOM_MTA_DELETE_MESSAGES |
static int |
SOM_MTA_DISABLE_INBOUND |
static int |
SOM_MTA_DISCONNECT |
static int |
SOM_MTA_ENABLE_INBOUND |
static int |
SOM_MTA_NONDELIVER_MESSAGES |
static int |
SOM_MTA_REPROCESS |
static int |
SOM_MTA_START |
static int |
SOM_MTA_STOP |
static int |
SOM_MTA_TIMEOUT_MESSAGES |
opListener, opSession
Constructor and Description |
---|
SomQmgrMtaControlCommand(SomSession session,
int op,
SomQmgrHandler object,
SomCommandListener listener)
Create a new SomQmgrMtaControlCommand object.
|
SomQmgrMtaControlCommand(SomSession session,
int op,
SomQmgrSelector sel,
SomQmgrHandler object,
SomCommandListener listener)
Create a new SomQmgrMtaControlCommand object with a Selector
|
Modifier and Type | Method and Description |
---|---|
void |
addSelector(SomQmgrSelector sel)
Add a Selector to the command
|
java.lang.String |
getCommandString() |
java.lang.String |
getSubcommand() |
void |
setDelay(SomUtcTime delay)
Set the delay value for the SOM_MTA_DELAY_SET command
|
void |
setReason(java.lang.String r)
Set the reason string for the SOM_MTA_NONDELIVER_MESSAGES command
|
getHandler, processResponse
dispatch, getSession, notifyListener, notifyListener, notifyListener
public static final int SOM_MTA_STOP
public static final int SOM_MTA_START
public static final int SOM_MTA_DELAY_CLEAR
public static final int SOM_MTA_DELAY_SET
public static final int SOM_MTA_DELETE
public static final int SOM_MTA_CONNECT
public static final int SOM_MTA_DISCONNECT
public static final int SOM_MTA_ENABLE_INBOUND
public static final int SOM_MTA_DISABLE_INBOUND
public static final int SOM_MTA_DELETE_MESSAGES
public static final int SOM_MTA_NONDELIVER_MESSAGES
public static final int SOM_MTA_TIMEOUT_MESSAGES
public static final int SOM_MTA_REPROCESS
public SomQmgrMtaControlCommand(SomSession session, int op, SomQmgrHandler object, SomCommandListener listener)
session
- Session for command which may not be nullop
- Operation codeobject
- Handler object for result which may not be nulllistener
- Listener for command completion which may be nullpublic SomQmgrMtaControlCommand(SomSession session, int op, SomQmgrSelector sel, SomQmgrHandler object, SomCommandListener listener)
session
- Session for command which may not be nullop
- Operation codesel
- Selector which may be nullobject
- Handler object for result which may not be nulllistener
- Listener for command completion which may be nullpublic void setDelay(SomUtcTime delay)
delay
- Time to delay until (UTC Time String) which may not be nullpublic void setReason(java.lang.String r)
r
- Reason string, which may not be nullpublic java.lang.String getSubcommand() throws SomException
SomException
public void addSelector(SomQmgrSelector sel)
sel
- Selector which may be nullpublic java.lang.String getCommandString() throws SomException
getCommandString
in class SomCommand
SomException
- Indicating a problem with the commandVersion: 18.0v6-0
Copyright (c) 2017-2020 Isode