Interface InternalParameterAcceptingConnection
-
- All Superinterfaces:
InternalProtocolInterface
public interface InternalParameterAcceptingConnection extends InternalProtocolInterface
Mixed into a provider connection, to allow tooling models to be requested by the client and to run client-provided actions (including builds) with cancellation support.DO NOT CHANGE THIS INTERFACE - it is part of the cross-version protocol.
Consumer compatibility: This interface is used by all consumer versions from 4.4.
Provider compatibility: This interface is implemented by all provider versions from 4.4.
- Since:
- 4.4
- See Also:
ConnectionVersion4
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> BuildResult<T>
run(InternalBuildActionVersion2<T> action, InternalCancellationToken cancellationToken, BuildParameters operationParameters)
Performs some action against a build and returns the result.
-
-
-
Method Detail
-
run
<T> BuildResult<T> run(InternalBuildActionVersion2<T> action, InternalCancellationToken cancellationToken, BuildParameters operationParameters) throws BuildExceptionVersion1, InternalUnsupportedBuildArgumentException, InternalBuildActionFailureException, InternalBuildCancelledException, java.lang.IllegalStateException
Performs some action against a build and returns the result.Consumer compatibility: This method is used by all consumer versions from 4.4.
Provider compatibility: This method is implemented by all provider versions from 4.4.
- Throws:
BuildExceptionVersion1
- On build failure.InternalUnsupportedBuildArgumentException
- When the specified command-line options are not supported.InternalBuildActionFailureException
- When the action fails with an exception.InternalBuildCancelledException
- When the operation was cancelled before it could complete.java.lang.IllegalStateException
- When this connection has been stopped.- Since:
- 4.4
-
-