Package org.eclipse.emf.cdo.util

# Schnittstelle CDOUpdatable

Alle bekannten Unterschnittstellen:
  `CDONet4jSession`, `CDOSession`, `CDOSession`, `CDOTransaction`, `CDOView`, `InternalCDOSession`, `InternalCDOTransaction`, `InternalCDOView`

Alle bekannten Implementierungsklassen:
  `CDOPushTransaction`

public interface CDOUpdatable
Represents facilities that can receive `passive updates`.

Seit:
  3.0
Autor:
  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.

## Feldübersicht

Felder
Modifizierer und Typ
Feld
Beschreibung
`static final long`
`NO_TIMEOUT`

## Methodenübersicht

Modifizierer und Typ
Methode
Beschreibung
`long`
`getLastUpdateTime()`
Returns the time stamp of the last commit operation.
`boolean`
`runAfterUpdate(long updateTime, Runnable runnable)`
`void`
`waitForUpdate(long updateTime)`
Blocks the calling thread until a commit operation with the given time stamp (or higher) has occurred.
`boolean`
`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.

## Felddetails

### NO_TIMEOUT

static final long NO_TIMEOUT

Siehe auch:
  - Konstantenfeldwerte

## Methodendetails

### getLastUpdateTime

long getLastUpdateTime()
Returns the time stamp of the last commit operation. May not be accurate if `passive updates` are disabled.

### waitForUpdate

void waitForUpdate(long updateTime)
Blocks the calling thread until a commit operation with the given time stamp (or higher) has occurred.

Parameter:
  `updateTime` - the time stamp of the update to wait for in milliseconds since Unix epoch.

### waitForUpdate

boolean 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.

Parameter:
  `updateTime` - the time stamp of the update to wait for in milliseconds since Unix epoch.
  `timeoutMillis` - the maximum number of milliseconds to wait for the update to occur, or `NO_TIMEOUT` to wait indefinitely.
Gibt zurück:
  `true` if the specified commit operation has occurred within the given timeout period, `false` otherwise.

### runAfterUpdate

boolean runAfterUpdate(long updateTime, Runnable runnable)

Seit:
  4.3