public enum AppointmentExecutorService extends Enum<AppointmentExecutorService>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(Runnable task)
Executes the given command at some time in the future.
|
void |
shutdown()
The following method shuts down the _executorService in two phases, first by calling shutdown to reject incoming tasks, and then calling shutdownNow, if
necessary, to cancel any lingering tasks:
|
Future<?> |
submit(Runnable task)
Submits a Runnable task for execution and returns a Future representing that task.
|
static AppointmentExecutorService |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AppointmentExecutorService[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AppointmentExecutorService INSTANCE
public static AppointmentExecutorService[] values()
for (AppointmentExecutorService c : AppointmentExecutorService.values()) System.out.println(c);
public static AppointmentExecutorService valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic void execute(Runnable task)
Executor implementation.command - the runnable taskRejectedExecutionException - if this task cannot be accepted for executionNullPointerException - if command is nullpublic Future<?> submit(Runnable task)
task - the task to submitRejectedExecutionException - if the task cannot be scheduled for executionNullPointerException - if the task is nullpublic void shutdown()
Copyright © 2023 City of Paris. All rights reserved.