|
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
An interface that indicates the implementing class can be cached for some
period of time. Implementing classes will be stored in a
HashDecay instance. Each instantiating class must create its
own HashDecay instance and return a reference to it through
the getCache method.
The update time is what is used by the HasDecay to determine
when an object will decay and be discarded.
HashDecay| Method Summary | |
void |
clearCache()
Removes any cached objects. |
void |
commit()
Stores this object back into Perforce, creating it if it didn't already exist. |
HashDecay |
getCache()
Returns the HashDecay instance for this class |
long |
getSyncTime()
Returns the time, in milliseconds, that this object was synchronized. |
long |
getUpdateTime()
Returns the time, in milliseconds, for this object's last update. |
void |
inSync()
Marks this object as being in in sync or valid. |
void |
invalidate()
Invalidates this object. |
boolean |
outOfSync(long threshold)
Tests this object to see if it is out of sync. |
void |
refreshUpdateTime()
Sets the update time for this object to the current time. |
void |
sync()
Brings this object back into sync with Perforce. |
| Method Detail |
public void clearCache()
public void commit()
throws CommitException
public HashDecay getCache()
public long getSyncTime()
public long getUpdateTime()
public void inSync()
public void invalidate()
public boolean outOfSync(long threshold)
threshold - Number of milliseconds.public void refreshUpdateTime()
public void sync()
throws PerforceException
|
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||