public abstract class CommandImpl extends Object implements Command
| Modifier and Type | Field and Description |
|---|---|
protected Notice |
error |
protected Throwable |
exception |
protected long |
networkTimeout |
protected List<Notice> |
notices |
| Constructor and Description |
|---|
CommandImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addNotice(Notice notice) |
void |
enableCancelTimer(ProtocolImpl protocol,
long timeout) |
abstract void |
execute(ProtocolImpl protocol) |
Notice |
getError() |
Throwable |
getException() |
long |
getNetworkTimeout() |
List<Notice> |
getWarnings() |
void |
setError(Notice error) |
void |
setException(Throwable cause) |
void |
setNetworkTimeout(long timeout) |
void |
waitFor(ProtocolListener listener) |
protected long networkTimeout
protected Throwable exception
protected Notice error
public long getNetworkTimeout()
getNetworkTimeout in interface Commandpublic void setNetworkTimeout(long timeout)
setNetworkTimeout in interface Commandpublic void setError(Notice error)
public Throwable getException()
getException in interface Commandpublic void setException(Throwable cause)
public void addNotice(Notice notice)
public List<Notice> getWarnings()
getWarnings in interface Commandpublic void waitFor(ProtocolListener listener) throws IOException
IOExceptionpublic void enableCancelTimer(ProtocolImpl protocol, long timeout)
public abstract void execute(ProtocolImpl protocol) throws IOException
IOExceptionCopyright © 2013–2017 impossibl.com. All rights reserved.