hal/src/zutil/net/nio/service/sync/ObjectSync.java

29 lines
562 B
Java
Raw Normal View History

2011-02-15 19:37:35 +00:00
package zutil.net.nio.service.sync;
2008-11-14 16:38:36 +00:00
2011-02-15 19:37:35 +00:00
import zutil.net.nio.message.SyncMessage;
2008-11-14 16:38:36 +00:00
public abstract class ObjectSync {
public String id;
public ObjectSync(String id){
this.id = id;
}
/**
* Sends sync message if the object has bean changed
*/
public abstract void sendSync();
/**
* Applies the SyncMessage to the object
* @param message
* @param object
*/
public abstract void syncObject(SyncMessage message);
/**
* Called when the object is removed from the sync list
*/
public abstract void remove();
}