P
- the type of the provider for this serviceM
- the type of the manager for this servicepublic abstract class AbstractGenericService<P extends Provider,M extends Manager> extends AbstractService
AbstractService
class holding
Provider
and Manager
instances. This skeleton
implementation provides an abstract builder mechanism to construct
instances of extended classes.Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractGenericService.AbstractGenericBuilder<B extends AbstractGenericService.AbstractGenericBuilder<B,P,M>,P extends Provider,M extends Manager>
An abstract builder for creating generic service instances.
|
Modifier and Type | Field and Description |
---|---|
protected M |
manager
The manager.
|
protected P |
provider
The provider.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractGenericService(AbstractGenericService.AbstractGenericBuilder<?,P,M> builder)
Constructor for use by subclasses.
|
checkRunning, checkState, checkState, equals, getName, hashCode, toString
addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, doStart, doStop, failureCause, isRunning, notifyFailed, notifyStarted, notifyStopped, startAsync, state, stopAsync
protected AbstractGenericService(AbstractGenericService.AbstractGenericBuilder<?,P,M> builder)