T
- The sort of service that this implementspublic interface ReloadableService<T> extends InitializableComponent
Modifier and Type | Method and Description |
---|---|
org.joda.time.DateTime |
getLastReloadAttemptInstant()
Gets the time when the service last attempted to reload.
|
org.joda.time.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.
|
initialize, isInitialized
@Nullable org.joda.time.DateTime getLastSuccessfulReloadInstant()
@Nullable org.joda.time.DateTime getLastReloadAttemptInstant()
getLastSuccessfulReloadInstant()
.@Nullable Throwable getReloadFailureCause()
void reload()
ServiceException
- thrown if there is a problem reloading the service@Nullable ServiceableComponent<T> getServiceableComponent()
ServiceableComponent.unpinComponent()
.Copyright © 1999–2019. All rights reserved.