Package org.eclipse.emf.cdo.util
Interface CDOUpdatable
- 
- All Known Subinterfaces:
- CDONet4jSession,- CDOSession,- CDOSession,- CDOTransaction,- CDOView,- InternalCDOSession,- InternalCDOTransaction,- InternalCDOView
 - All Known Implementing Classes:
- CDOPushTransaction
 
 public interface CDOUpdatableRepresents facilities that can receivepassive updates.- Since:
- 3.0
- Author:
- Eike Stepper
- No Implement
- This interface is not intended to be implemented by clients.
- No Extend
- This interface is not intended to be extended by clients.
 
- 
- 
Field SummaryFields Modifier and Type Field Description static longNO_TIMEOUT
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetLastUpdateTime()Returns the time stamp of the last commit operation.booleanrunAfterUpdate(long updateTime, java.lang.Runnable runnable)voidwaitForUpdate(long updateTime)Blocks the calling thread until a commit operation with the given time stamp (or higher) has occurred.booleanwaitForUpdate(long updateTime, long timeoutMillis)Blocks the calling thread until a commit operation with the given time stamp (or higher) has occurred or the given timeout has expired.
 
- 
- 
- 
Field Detail- 
NO_TIMEOUTstatic final long NO_TIMEOUT - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getLastUpdateTimelong getLastUpdateTime() Returns the time stamp of the last commit operation. May not be accurate ifpassive updatesare disabled.
 - 
waitForUpdatevoid waitForUpdate(long updateTime) Blocks the calling thread until a commit operation with the given time stamp (or higher) has occurred.
 - 
waitForUpdateboolean waitForUpdate(long updateTime, long timeoutMillis)Blocks the calling thread until a commit operation with the given time stamp (or higher) has occurred or the given timeout has expired.- Returns:
- trueif the specified commit operation has occurred within the given timeout period,- falseotherwise.
 
 - 
runAfterUpdateboolean runAfterUpdate(long updateTime, java.lang.Runnable runnable)- Since:
- 4.3
 
 
- 
 
-