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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.atlassian.bitbucket.scm.AsyncCommand<T>
     
    void
    setExecutionTimeout(long timeoutInSecs)
    Throws an UnsupportedOperationException to indicate that an execution timeout cannot be configured.
    void
    setIdleTimeout(long timeoutInSecs)
    Throws an UnsupportedOperationException to 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, wait

    Methods inherited from interface com.atlassian.bitbucket.scm.Command

    call, setExecutionTimeout, setIdleTimeout, setTimeout, setTimeout
  • Constructor Details

    • SimpleCommand

      public SimpleCommand()
  • Method Details

    • asynchronous

      @Nonnull public com.atlassian.bitbucket.scm.AsyncCommand<T> asynchronous()
      Specified by:
      asynchronous in interface com.atlassian.bitbucket.scm.Command<T>
    • setExecutionTimeout

      public void setExecutionTimeout(long timeoutInSecs)
      Throws an UnsupportedOperationException to indicate that an execution timeout cannot be configured.
      Specified by:
      setExecutionTimeout in interface com.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 an UnsupportedOperationException to indicate that an idle timeout cannot be configured.
      Specified by:
      setIdleTimeout in interface com.atlassian.bitbucket.scm.Command<T>
      Parameters:
      timeoutInSecs - the maximum time the operation is allowed to be idle, in seconds
      Throws:
      UnsupportedOperationException - if invoked