Method Summary |
|
public int | cancelUpdate() Updates the state to UPDATE_CANCELLED . |
public int | completeUpdate() Updates the state to UPDATE_COMPLETE . |
public synchronized int | decrementUsageCounter() Decrements the usage counter by one. |
public synchronized int | getUsageCounter() |
public synchronized int | incrementUsageCounter() |
public boolean | isAwaitingUpdate() This is the initial state when an instance this object is first created. |
public boolean | isCancelled() The thread that was responsible for updating the cache entry (ie, the thread
that managed to grab the update lock) has decided to give up responsibility
for performing the update. |
public boolean | isComplete() The update of the cache entry has been completed. |
public boolean | isUpdating() The cache entry is currently being generated by the thread that got hold of
the update lock. |
public int | startUpdate() Attempt to change the state to UPDATE_IN_PROGRESS . |