Package com.atlassian.bitbucket.scm
Class SimpleCommand<T>
java.lang.Object
com.atlassian.bitbucket.scm.SimpleCommand<T>
- All Implemented Interfaces:
com.atlassian.bitbucket.scm.Command<T>,Callable<T>
public abstract class SimpleCommand<T>
extends Object
implements com.atlassian.bitbucket.scm.Command<T>
Implementation of the
Command interface that provides empty implementations for all methods
except Command.call().-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.atlassian.bitbucket.scm.AsyncCommand<T>voidsetExecutionTimeout(long timeoutInSecs) Throws anUnsupportedOperationExceptionto indicate that an execution timeout cannot be configured.voidsetIdleTimeout(long timeoutInSecs) Throws anUnsupportedOperationExceptionto indicate that an idle timeout cannot be configured.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.bitbucket.scm.Command
call, setExecutionTimeout, setIdleTimeout, setTimeout, setTimeout
-
Constructor Details
-
SimpleCommand
public SimpleCommand()
-
-
Method Details
-
asynchronous
- Specified by:
asynchronousin interfacecom.atlassian.bitbucket.scm.Command<T>
-
setExecutionTimeout
public void setExecutionTimeout(long timeoutInSecs) Throws anUnsupportedOperationExceptionto indicate that an execution timeout cannot be configured.- Specified by:
setExecutionTimeoutin interfacecom.atlassian.bitbucket.scm.Command<T>- Parameters:
timeoutInSecs- the maximum time the operation is allowed to run, in seconds- Throws:
UnsupportedOperationException- if invoked
-
setIdleTimeout
public void setIdleTimeout(long timeoutInSecs) Throws anUnsupportedOperationExceptionto indicate that an idle timeout cannot be configured.- Specified by:
setIdleTimeoutin interfacecom.atlassian.bitbucket.scm.Command<T>- Parameters:
timeoutInSecs- the maximum time the operation is allowed to be idle, in seconds- Throws:
UnsupportedOperationException- if invoked
-