Removed getTimeout() until somebody wants it. Don't want bloat

This commit is contained in:
GideonLeGrange 2015-03-30 16:47:35 +02:00
parent eac62b0945
commit d86e59c340
2 changed files with 0 additions and 15 deletions

View File

@ -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.

View File

@ -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) {