Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 314544 - Provide CDOView.waitForUpdate(...) API
Summary: Provide CDOView.waitForUpdate(...) API
Status: CLOSED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: cdo.core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Eike Stepper CLA
QA Contact: Eike Stepper CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-26 13:58 EDT by Eike Stepper CLA
Modified: 2010-06-29 09:21 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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/