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:
java.util.EventListener
,OortObject.Listener<T>
- Enclosing interface:
- OortObject.Listener<T>
public static class OortObject.Listener.Adapter<T> extends java.lang.Object implements OortObject.Listener<T>
An empty implementation ofOortObject.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
All Methods Instance Methods Concrete Methods 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.
-
-
-
Method Detail
-
onUpdated
public void onUpdated(OortObject.Info<T> oldInfo, OortObject.Info<T> newInfo)
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
public void onRemoved(OortObject.Info<T> info)
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
-
-