Removed getTimeout() until somebody wants it. Don't want bloat
This commit is contained in:
parent
eac62b0945
commit
d86e59c340
|
|
@ -133,16 +133,6 @@ public abstract class ApiConnection {
|
||||||
* @throws me.legrange.mikrotik.MikrotikApiException Thrown if there is a problem canceling the command */
|
* @throws me.legrange.mikrotik.MikrotikApiException Thrown if there is a problem canceling the command */
|
||||||
public abstract void cancel(String tag) throws MikrotikApiException;
|
public abstract void cancel(String tag) throws MikrotikApiException;
|
||||||
|
|
||||||
/** get the command timeout. The command timeout is used to time out API
|
|
||||||
* commands after a specific time.
|
|
||||||
*
|
|
||||||
* Note: This is not the same as the timeout value passed in the connect() and
|
|
||||||
* connectTLS() methods. This timeout is specific to synchronous commands, that
|
|
||||||
* timeout is applied to opening the API socket.
|
|
||||||
*
|
|
||||||
* @return The time out in milliseconds.
|
|
||||||
*/
|
|
||||||
public abstract int getTimeout();
|
|
||||||
|
|
||||||
/** set the command timeout. The command timeout is used to time out API
|
/** set the command timeout. The command timeout is used to time out API
|
||||||
* commands after a specific time.
|
* commands after a specific time.
|
||||||
|
|
|
||||||
|
|
@ -97,11 +97,6 @@ public final class ApiConnectionImpl extends ApiConnection {
|
||||||
execute(String.format("/cancel tag=%s", tag));
|
execute(String.format("/cancel tag=%s", tag));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public int getTimeout() {
|
|
||||||
return timeout;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setTimeout(int timeout) throws MikrotikApiException {
|
public void setTimeout(int timeout) throws MikrotikApiException {
|
||||||
if (timeout > 0) {
|
if (timeout > 0) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue