Interface that allows external listeners to register to be notified when a network object receives an update. More...
Public Member Functions | |
void | newVersionAvailable (CCNNetworkObject<?> newVersion, boolean wasSave) |
Notification when a new version is available of a given object (the object's data and version information will already have been updated to reflect the new version). |
Interface that allows external listeners to register to be notified when a network object receives an update.
void org.ccnx.ccn.io.content.UpdateListener.newVersionAvailable | ( | CCNNetworkObject<?> | newVersion, | |
boolean | wasSave | |||
) |
Notification when a new version is available of a given object (the object's data and version information will already have been updated to reflect the new version).
newVersion | The newly updated object. | |
wasSave | If true, someone called save() on this particular object, if false, the object received new data from the network. |
Implemented in org.ccnx.ccn.io.CCNFileInputStream, org.ccnx.ccn.io.content.LocalCopyListener, org.ccnx.ccn.io.content.LocalCopyWrapper, and org.ccnx.ccn.test.io.content.CCNNetworkObjectTest.CounterListener.