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 Command
public void setNetworkTimeout(long timeout)
setNetworkTimeout
in interface Command
public void setError(Notice error)
public Throwable getException()
getException
in interface Command
public void setException(Throwable cause)
public void addNotice(Notice notice)
public List<Notice> getWarnings()
getWarnings
in interface Command
public void waitFor(ProtocolListener listener) throws IOException
IOException
public void enableCancelTimer(ProtocolImpl protocol, long timeout)
public abstract void execute(ProtocolImpl protocol) throws IOException
IOException
Copyright © 2013–2017 impossibl.com. All rights reserved.