T - The sort of service that this implementspublic interface ReloadableService<T> extends Lifecycle
| Modifier and Type | Method and Description |
|---|---|
DateTime |
getLastReloadAttemptInstant()
Gets the time when the service last attempted to reload.
|
DateTime |
getLastSuccessfulReloadInstant()
Gets the time when the service was last successfully reloaded.
|
Throwable |
getReloadFailureCause()
Gets the reason the last reload failed.
|
ServiceableComponent<T> |
getServiceableComponent()
Get the serviceable component that this service supports .
|
void |
reload()
Reloads the configuration of the service.
|
@Nullable DateTime getLastSuccessfulReloadInstant()
@Nullable DateTime getLastReloadAttemptInstant()
getLastSuccessfulReloadInstant().@Nullable Throwable getReloadFailureCause()
void reload()
throws ServiceException
ServiceException - thrown if there is a problem reloading the service@Nullable ServiceableComponent<T> getServiceableComponent()
Copyright © 1999–2014. All rights reserved.