T
- the object typejava.util.EventListener
OortList.DeltaListener
, OortMap.DeltaListener
, OortObject.Listener.Adapter
public static interface OortObject.Listener<T>
extends java.util.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 | Interface | Description |
---|---|---|
static class |
OortObject.Listener.Adapter<T> |
An empty implementation of
OortObject.Listener . |
Modifier and Type | Method | Description |
---|---|---|
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.
|
void |
onUpdated(OortObject.Info<T> oldInfo,
OortObject.Info<T> newInfo) |
Callback method invoked when the object value is updated.
|
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 changevoid onRemoved(OortObject.Info<T> info)
info
- the OortObject.Info
before the removalCopyright © 2008–2017 The CometD Project. All rights reserved.