M - Messagepublic interface Controller<M> extends Shutdownable, Activatable, Changeable, Pingable, Requestable<M>
| Modifier and Type | Interface and Description |
|---|---|
static class |
Controller.ControllerAvailabilityState |
Shutdownable.ShutdownDeamon| Modifier and Type | Method and Description |
|---|---|
Controller.ControllerAvailabilityState |
getControllerAvailabilityState()
Method returns the availability state of this controller.
|
M |
getData() |
Class<M> |
getDataClass()
Method returns the class of the internal data object which is used for remote synchronization.
|
void |
notifyChange()
Synchronize all registered remote instances about a data change.
|
void |
waitForAvailabilityState(Controller.ControllerAvailabilityState controllerAvailabilityState)
Wait until the controller reached a given availability state.
|
registerShutdownHook, registerShutdownHook, shutdownactivate, deactivate, isActiverequestStatusM getData() throws CouldNotPerformException
CouldNotPerformExceptionClass<M> getDataClass()
Controller.ControllerAvailabilityState getControllerAvailabilityState()
void waitForAvailabilityState(Controller.ControllerAvailabilityState controllerAvailabilityState) throws InterruptedException
controllerAvailabilityState - the state on which is waitedInterruptedException - if the waiting is interruptedvoid notifyChange()
throws CouldNotPerformException,
InterruptedException
notifyChange in interface ChangeableCouldNotPerformException - if the notification could not be performedInterruptedException - if the notification has been interruptedCopyright © 2015–2018 openbase.org. All rights reserved.