public interface Sharable
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getReceiveShareTime(java.lang.Object dataId)
Get the last time this object rcvd the share
|
java.lang.Object |
getShareGroup()
Gets the share group.
|
boolean |
getSharing()
Gets the sharing.
|
java.lang.String |
getUniqueId()
Gets the unique id.
|
void |
receiveShareData(Sharable from,
java.lang.Object dataId,
java.lang.Object[] data)
Receive share data.
|
void |
setReceiveShareTime(java.lang.Object dataId,
java.lang.Long time)
Record the time when this object rcvd the share
|
boolean getSharing()
void setReceiveShareTime(java.lang.Object dataId, java.lang.Long time)
dataId
- data idtime
- timejava.lang.Long getReceiveShareTime(java.lang.Object dataId)
dataId
- data idvoid receiveShareData(Sharable from, java.lang.Object dataId, java.lang.Object[] data)
from
- the fromdataId
- the data iddata
- the datajava.lang.Object getShareGroup()
java.lang.String getUniqueId()