public interface StateWatcher
| Modifier and Type | Method and Description |
|---|---|
void |
stateRegistered(@NotNull State<?> state,
java.lang.Object caller)
Called when a state is registered on a host.
|
void |
stateUnregistered(@NotNull State<?> state,
java.lang.Object caller) |
void |
stateValueGet(@NotNull State<?> state,
@NotNull StateValueHost host,
@NotNull StateValue internalValue,
java.lang.Object rawValue)
Called when the value of a state on a specific host is obtained.
|
void |
stateValueSet(@NotNull StateValueHost host,
@NotNull StateValue value,
java.lang.Object rawOldValue,
java.lang.Object rawNewValue)
Called when the value of a state on a host is set.
|
void stateRegistered(@NotNull
@NotNull State<?> state,
java.lang.Object caller)
state - The registered state.caller - Who registered the state.void stateUnregistered(@NotNull
@NotNull State<?> state,
java.lang.Object caller)
void stateValueGet(@NotNull
@NotNull State<?> state,
@NotNull
@NotNull StateValueHost host,
@NotNull
@NotNull StateValue internalValue,
java.lang.Object rawValue)
state - The state.host - The host.internalValue - The retrieved value as an internal value.rawValue - The raw value from the internal value.void stateValueSet(@NotNull
@NotNull StateValueHost host,
@NotNull
@NotNull StateValue value,
java.lang.Object rawOldValue,
java.lang.Object rawNewValue)
host - The host.value - The retrieved value as an internal value.rawOldValue - The previous state value.rawNewValue - The new state value.