public abstract class

SimpleCommand

extends Object
implements Command<T>
java.lang.Object
   ↳ com.atlassian.bitbucket.scm.SimpleCommand<T>

Class Overview

Implementation of the Command interface that provides empty implementations for all methods except call().

Summary

Public Constructors
SimpleCommand()
Public Methods
@Nonnull AsyncCommand<T> asynchronous()
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.bitbucket.scm.Command
From interface java.util.concurrent.Callable

Public Constructors

public SimpleCommand ()

Public Methods

@Nonnull public AsyncCommand<T> asynchronous ()

public void setExecutionTimeout (long timeoutInSecs)

Throws an UnsupportedOperationException to indicate that an execution timeout cannot be configured.

Parameters
timeoutInSecs the maximum time the operation is allowed to run, in seconds
Throws
UnsupportedOperationException if invoked

public void setIdleTimeout (long timeoutInSecs)

Throws an UnsupportedOperationException to indicate that an idle timeout cannot be configured.

Parameters
timeoutInSecs the maximum time the operation is allowed to be idle, in seconds
Throws
UnsupportedOperationException if invoked