public interface JobHandlerRegistry
| Modifier and Type | Method and Description |
|---|---|
<Q,R> boolean |
addHandler(JobType<Q,R> jobType,
com.google.common.base.Supplier<JobHandler<Q,R>> handlerSupplier)
Adds or replaces the handler for a specific job type.
|
<Q,R> boolean addHandler(JobType<Q,R> jobType, com.google.common.base.Supplier<JobHandler<Q,R>> handlerSupplier)
Because there is state associated with the handler the Supplier must return a new instance on each call to
Supplier.get().
Q - The class for making requestsR - The class for job resultsjobType - The job typehandlerSupplier - Supplier of handlers for this job typeCopyright © 2020. All Rights Reserved.