Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 314544

Summary: Provide CDOView.waitForUpdate(...) API
Product: [Modeling] EMF Reporter: Eike Stepper <stepper>
Component: cdo.coreAssignee: Eike Stepper <stepper>
Status: CLOSED FIXED QA Contact: Eike Stepper <stepper>
Severity: enhancement    
Priority: P3    
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Eike Stepper CLA 2010-05-26 13:58:50 EDT
Between CDOSession.waitForUpdate() and the CDOView invalidation is an unpredictable gap, caused by the InvalidationRunner thread. If you want to know when a partiular update has been applied to a CDOView there needs to be separate API.
Comment 1 Eike Stepper CLA 2010-05-26 14:00:00 EDT
I've made CDOSession and CDOView subtypes of:

public interface CDOUpdatable
{
  public static final long NO_TIMEOUT = -1;
  public long getLastUpdateTime();
  public void waitForUpdate(long updateTime);
  public boolean waitForUpdate(long updateTime, long timeoutMillis);
}
Comment 2 Eike Stepper CLA 2010-05-26 14:00:31 EDT
Committed to HEAD
Comment 3 Eike Stepper CLA 2010-06-29 04:40:57 EDT
Available in 3.0 GA:
http://download.eclipse.org/modeling/emf/cdo/updates/3.0-releases/