Interface TaskExecutorService.Registration
- All Known Implementing Classes:
ClusteredRegistration
- Enclosing interface:
TaskExecutorService
public static interface TaskExecutorService.Registration
Provides registration information about an
ExecutorService registration.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceAnTaskExecutorService.Registration.Optionfor anExecutorServicewhen registered. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()TODO(rl): flesh out contract Close this registration.getId()Obtains the unique identity for the registeredExecutorService.<T extends TaskExecutorService.Registration.Option>
TObtains theTaskExecutorService.Registration.Optionof the specified class when theExecutorServicewas registered, or the default value if not found.
-
Method Details
-
getId
String getId()Obtains the unique identity for the registeredExecutorService.- Returns:
- the unique identity
-
getOption
<T extends TaskExecutorService.Registration.Option> T getOption(Class<T> classOfOption, T defaultIfNotFound) Obtains theTaskExecutorService.Registration.Optionof the specified class when theExecutorServicewas registered, or the default value if not found.- Type Parameters:
T- the type of theTaskExecutorService.Registration.Option- Parameters:
classOfOption- the class ofTaskExecutorService.Registration.OptiondefaultIfNotFound- the value to return if not found- Returns:
- a
TaskExecutorService.Registration.Option
-
close
void close()TODO(rl): flesh out contract Close this registration.
-