Class TestConnection
- java.lang.Object
-
- org.eclipse.jetty.util.thread.strategy.jmh.TestConnection
-
- All Implemented Interfaces:
ExecutionStrategy.Producer
public class TestConnection extends java.lang.Object implements ExecutionStrategy.Producer
-
-
Constructor Summary
Constructors Constructor Description TestConnection(TestServer server, boolean sleeping)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Runnable
produce()
Produces a task to be executed.void
submit(java.util.concurrent.CompletableFuture<java.lang.String> futureResult)
-
-
-
Constructor Detail
-
TestConnection
public TestConnection(TestServer server, boolean sleeping)
-
-
Method Detail
-
produce
public java.lang.Runnable produce()
Description copied from interface:ExecutionStrategy.Producer
Produces a task to be executed.
- Specified by:
produce
in interfaceExecutionStrategy.Producer
- Returns:
- a task to executed or null if there are no more tasks to execute
-
submit
public void submit(java.util.concurrent.CompletableFuture<java.lang.String> futureResult)
-
-