Package org.eclipse.emf.spi.cdo
Class CDOSessionProtocol.RefreshSessionResult
java.lang.Object
org.eclipse.emf.spi.cdo.CDOSessionProtocol.RefreshSessionResult
- Enclosing interface:
CDOSessionProtocol
Contains the repository update position and package-unit information returned when a session refreshes. The client
uses this snapshot to synchronize its views with repository changes that have occurred since its previous update.
- Since:
- 3.0
- Author:
- Eike Stepper
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceProvides a hook for customizing the creation ofRefreshSessionResults. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChangedObject(InternalCDORevision revision) voidaddChangedObject(InternalCDORevision revision, InternalCDORevisionDelta delta) Adds a changed revision and its server-derived delta to this refresh result.voidaddDetachedObject(CDORevisionKey revision) voidaddPackageUnit(CDOPackageUnit packageUnit) getChangedObjectDelta(CDOBranch branch, CDOID id) Returns the server-derived revision delta for a changed object, if one was supplied by the refresh protocol.getChangedObjects(CDOBranch branch) getDetachedObjects(CDOBranch branch) longbooleanhasChangedObjectDelta(CDOBranch branch, CDOID id) Indicates whether the refresh response carried delta metadata for the changed object.
-
Constructor Details
-
RefreshSessionResult
public RefreshSessionResult(long lastUpdateTime)
-
-
Method Details
-
getLastUpdateTime
public long getLastUpdateTime() -
getPackageUnits
-
getChangedObjects
-
getChangedObjectDelta
Returns the server-derived revision delta for a changed object, if one was supplied by the refresh protocol.- Parameters:
branch- the branch of the changed objectid- the ID of the changed object- Returns:
- the revision delta, or
nullif no delta was supplied - Since:
- 4.31
-
hasChangedObjectDelta
Indicates whether the refresh response carried delta metadata for the changed object.- Parameters:
branch- the branch of the changed objectid- the ID of the changed object- Returns:
trueif the response supplied a delta field, including an explicitly absent delta- Since:
- 4.31
-
getDetachedObjects
-
addPackageUnit
-
addChangedObject
-
addChangedObject
Adds a changed revision and its server-derived delta to this refresh result.- Parameters:
revision- the refreshed revisiondelta- the delta from the viewed revision to the refreshed revision- Since:
- 4.31
-
addDetachedObject
-