Package org.cometd.oort
Class OortObject.Listener.Adapter<T>
java.lang.Object
org.cometd.oort.OortObject.Listener.Adapter<T>
- Type Parameters:
T
- the object type
- All Implemented Interfaces:
EventListener
,OortObject.Listener<T>
- Enclosing interface:
- OortObject.Listener<T>
public static class OortObject.Listener.Adapter<T> extends Object implements OortObject.Listener<T>
An empty implementation of
OortObject.Listener
.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cometd.oort.OortObject.Listener
OortObject.Listener.Adapter<T>
-
Constructor Summary
Constructors Constructor Description Adapter()
-
Method Summary
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.
-
Constructor Details
-
Adapter
public Adapter()
-
-
Method Details
-
onUpdated
Description copied from interface:OortObject.Listener
Callback method invoked when the object value is updated.- Specified by:
onUpdated
in interfaceOortObject.Listener<T>
- Parameters:
oldInfo
- theOortObject.Info
before the change, may be nullnewInfo
- theOortObject.Info
after the change
-
onRemoved
Description copied from interface:OortObject.Listener
Callback method invoked when the object value is removed, for example because the correspondent node has been shut down or crashed.- Specified by:
onRemoved
in interfaceOortObject.Listener<T>
- Parameters:
info
- theOortObject.Info
before the removal
-