public class CommandMessage extends Message
Message.GregorDesignation| Modifier and Type | Field and Description |
|---|---|
private long |
acktimeout
The anticipated acknowledge timeout.
|
private boolean |
binarydone
If true, the second reply carries binary data.
|
static long |
DEFACKTIME
The default acknowldeg time-out.
|
static long |
DEFDONETIME
The default done time-out.
|
private long |
donetimeout
The anticipated done timeout.
|
| Modifier | Constructor and Description |
|---|---|
|
CommandMessage(Object src,
Object dest,
String ascii)
Creates amessage with source, destination and data section.
|
|
CommandMessage(Object src,
Object dest,
String ascii,
long doneout)
Creates amessage with source, destination, data section and flags.
|
|
CommandMessage(Object src,
Object dest,
String ascii,
long ackout,
long doneout)
Creates amessage with source, destination, data section and flags.
|
protected |
CommandMessage(Object src,
Object dest,
String ascii,
short fl,
long ackout,
long doneout)
Full constructor, hidden from the outside.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getAcknowledgeTimeout()
Returns the expected acknowledge timeout.
|
long |
getDoneTimeout()
Returns the expected done (=2nd reply) timeout.
|
boolean |
getExpectBinary()
Returns true, if this command expectes a binary second reply.
|
void |
setExpectBinary(boolean bit)
Sets the expected data flag to either binary (=true) or ascii (=false,
default).
|
protected void |
setTimeouts(long a,
long d)
Sets the acknowledge and done timeout.
|
public static final long DEFACKTIME
public static final long DEFDONETIME
private long acktimeout
private long donetimeout
private boolean binarydone
public CommandMessage(Object src, Object dest, String ascii)
public CommandMessage(Object src, Object dest, String ascii, long doneout)
public CommandMessage(Object src, Object dest, String ascii, long ackout, long doneout)
protected void setTimeouts(long a,
long d)
public void setExpectBinary(boolean bit)
public boolean getExpectBinary()
public long getAcknowledgeTimeout()
public long getDoneTimeout()