Class LazyConsumerActionExecutor
- java.lang.Object
-
- org.gradle.tooling.internal.consumer.connection.LazyConsumerActionExecutor
-
- All Implemented Interfaces:
org.gradle.internal.concurrent.Stoppable
,ConsumerActionExecutor
public class LazyConsumerActionExecutor extends java.lang.Object implements ConsumerActionExecutor
Creates the actual executor implementation on demand.
-
-
Constructor Summary
Constructors Constructor Description LazyConsumerActionExecutor(Distribution distribution, ToolingImplementationLoader implementationLoader, LoggingProvider loggingProvider, ConnectionParameters connectionParameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
disconnect()
java.lang.String
getDisplayName()
<T> T
run(ConsumerAction<T> action)
void
stop()
Blocks until all actions have completed.
-
-
-
Constructor Detail
-
LazyConsumerActionExecutor
public LazyConsumerActionExecutor(Distribution distribution, ToolingImplementationLoader implementationLoader, LoggingProvider loggingProvider, ConnectionParameters connectionParameters)
-
-
Method Detail
-
stop
public void stop()
Description copied from interface:ConsumerActionExecutor
Blocks until all actions have completed.- Specified by:
stop
in interfaceConsumerActionExecutor
- Specified by:
stop
in interfaceorg.gradle.internal.concurrent.Stoppable
-
disconnect
public void disconnect()
- Specified by:
disconnect
in interfaceConsumerActionExecutor
-
getDisplayName
public java.lang.String getDisplayName()
- Specified by:
getDisplayName
in interfaceConsumerActionExecutor
-
run
public <T> T run(ConsumerAction<T> action) throws java.lang.UnsupportedOperationException, java.lang.IllegalStateException
- Specified by:
run
in interfaceConsumerActionExecutor
- Throws:
java.lang.UnsupportedOperationException
java.lang.IllegalStateException
-
-