Interface InternalConnection
-
- All Superinterfaces:
ConnectionVersion4
,InternalProtocolInterface
@Deprecated public interface InternalConnection extends ConnectionVersion4, InternalProtocolInterface
Deprecated.1.2-rc-1. UseInternalCancellableConnection
instead.DO NOT CHANGE THIS INTERFACE - it is part of the cross-version protocol.
Consumer compatibility: This interface is used by all consumer versions from 1.0-milestone-8 to 1.1. It is also used by later consumers when the provider does not implement newer interfaces. It is not used by provider versions 3.0 and later.
Provider compatibility: This interface is implemented by all provider versions from 1.0-milestone-8.
- Since:
- 1.0-milestone-8
- See Also:
ConnectionVersion4
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description <T> T
getTheModel(java.lang.Class<T> type, BuildOperationParametersVersion1 operationParameters)
Deprecated.-
Methods inherited from interface org.gradle.tooling.internal.protocol.ConnectionVersion4
executeBuild, getMetaData, getModel, stop
-
-
-
-
Method Detail
-
getTheModel
@Deprecated <T> T getTheModel(java.lang.Class<T> type, BuildOperationParametersVersion1 operationParameters) throws java.lang.UnsupportedOperationException, java.lang.IllegalStateException
Deprecated.Fetches a snapshot of the model for the project. This method is generic so that we're not locked to building particular model type.The other method on the interface, e.g.
ConnectionVersion4.getModel(Class, BuildOperationParametersVersion1)
should be considered deprecatedConsumer compatibility: This method is used by all consumer versions from 1.0-milestone-8 to 1.1. It is also used by later consumers when the provider does not implement newer interfaces. It is not used by provider versions 3.0 and later.
Provider compatibility: This interface is implemented by all provider versions from 1.0-milestone-8. Provider versions 2.0 and later fail with a 'no longer supported' exception.
- Throws:
java.lang.UnsupportedOperationException
- When the given model type is not supported.java.lang.IllegalStateException
- When this connection has been stopped.- Since:
- 1.0-milestone-8
-
-