stomp.jdo
Interface RefreshListener
- All Superinterfaces:
- java.lang.Comparable
- All Known Implementing Classes:
- AbstractRefreshListener
- public interface RefreshListener
- extends java.lang.Comparable
callback interface used to notify objects in this JVM when persistent objects
are modified as a result of distributed caching.
- Author:
- Eric Lindauer
Method Summary |
int |
getPriority()
returns the relative priority of this listener. |
void |
objectDeleted(ObjectId deletedObject)
callback that is made when this particular object has been deleted. |
void |
objectRefreshed(java.lang.Object refreshedObject)
callback that is made when this particular object has been refreshed. |
Methods inherited from interface java.lang.Comparable |
compareTo |
objectRefreshed
public void objectRefreshed(java.lang.Object refreshedObject)
- callback that is made when this particular object has been refreshed.
the argument to the callback is the object used to register
this listener with the RefreshManager.
objects should use this as a warning that persistent data in the object
may have changed, so they should resync transient caches, etc.
objectDeleted
public void objectDeleted(ObjectId deletedObject)
- callback that is made when this particular object has been deleted.
the argument to the callback is the object used to register
this listener with the RefreshManager.
getPriority
public int getPriority()
- returns the relative priority of this listener. This allows clients
to control the order that refresh callbacks are made wherever needed