public class Scheduler extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Scheduler.SchedulerThreadFactory |
Constructor and Description |
---|
Scheduler(Configuration configuration,
MockServerLogger mockServerLogger) |
Scheduler(Configuration configuration,
MockServerLogger mockServerLogger,
boolean synchronous) |
Modifier and Type | Method and Description |
---|---|
void |
schedule(Runnable command,
boolean synchronous,
Delay... delays) |
void |
shutdown() |
void |
submit(CompletableFuture<BinaryMessage> future,
Runnable command,
boolean synchronous) |
void |
submit(HttpForwardActionResult future,
BiConsumer<HttpResponse,Throwable> consumer,
boolean synchronous) |
void |
submit(HttpForwardActionResult future,
Runnable command,
boolean synchronous,
Predicate<Throwable> logException) |
void |
submit(Runnable command) |
void |
submit(Runnable command,
boolean synchronous) |
public Scheduler(Configuration configuration, MockServerLogger mockServerLogger)
public Scheduler(Configuration configuration, MockServerLogger mockServerLogger, boolean synchronous)
public void shutdown()
public void submit(Runnable command)
public void submit(Runnable command, boolean synchronous)
public void submit(HttpForwardActionResult future, Runnable command, boolean synchronous, Predicate<Throwable> logException)
public void submit(CompletableFuture<BinaryMessage> future, Runnable command, boolean synchronous)
public void submit(HttpForwardActionResult future, BiConsumer<HttpResponse,Throwable> consumer, boolean synchronous)
Copyright © 2022. All rights reserved.