T
- the object typepublic static interface OortObject.Listener<T> extends EventListener
OortObject.Info
, either local or remote.
Implementers may detect whether the value has been changed locally or remotely using OortObject.Info.isLocal()
.Modifier and Type | Method and Description |
---|---|
default void |
onRemoved(OortObject.Info<T> info)
Callback method invoked when the object value is removed, for example
because the correspondent node has been shut down or crashed.
|
default void |
onUpdated(OortObject.Info<T> oldInfo,
OortObject.Info<T> newInfo)
Callback method invoked when the object value is updated.
|
default void onUpdated(OortObject.Info<T> oldInfo, OortObject.Info<T> newInfo)
oldInfo
- the OortObject.Info
before the change, may be nullnewInfo
- the OortObject.Info
after the changedefault void onRemoved(OortObject.Info<T> info)
info
- the OortObject.Info
before the removalCopyright © 2008–2024 The CometD Project. All rights reserved.