public static interface CDOCommonSession.Options extends IOptions
Modifier and Type | Interface and Description |
---|---|
static class |
CDOCommonSession.Options.LockNotificationMode
Enumerates the possible
lock notification modes of a
CDO session. |
static interface |
CDOCommonSession.Options.LockNotificationModeEvent
An
options event fired when the lock notification mode of a
CDO session has changed. |
static interface |
CDOCommonSession.Options.PassiveUpdateEvent
An
options event fired when the passive update mode of a CDO
session has changed. |
static class |
CDOCommonSession.Options.PassiveUpdateMode
Enumerates the possible
passive update modes of a CDO
session. |
Modifier and Type | Method and Description |
---|---|
CDOCommonSession |
getContainer()
Returns the
session of this options object. |
CDOCommonSession.Options.LockNotificationMode |
getLockNotificationMode() |
CDOCommonSession.Options.PassiveUpdateMode |
getPassiveUpdateMode() |
boolean |
isPassiveUpdateEnabled() |
void |
setLockNotificationMode(CDOCommonSession.Options.LockNotificationMode mode) |
void |
setPassiveUpdateEnabled(boolean enabled)
Specifies whether objects will be invalidated due by other users changes.
|
void |
setPassiveUpdateMode(CDOCommonSession.Options.PassiveUpdateMode mode) |
addListener, getListeners, hasListeners, removeListener
CDOCommonSession getContainer()
session
of this options object.getContainer
in interface IOptions
boolean isPassiveUpdateEnabled()
void setPassiveUpdateEnabled(boolean enabled)
Example:
session.setPassiveUpdateEnabled(false);
By default this property is enabled. If this property is disabled the latest versions of objects can still be obtained by calling refresh().
Passive update can be disabled in cases where more performance is needed and/or more control over when objects will be refreshed.
When enabled again, a refresh will be automatically performed to be in sync with the server.
CDOCommonSession.Options.PassiveUpdateMode getPassiveUpdateMode()
void setPassiveUpdateMode(CDOCommonSession.Options.PassiveUpdateMode mode)
CDOCommonSession.Options.LockNotificationMode getLockNotificationMode()
void setLockNotificationMode(CDOCommonSession.Options.LockNotificationMode mode)
Copyright (c) 2014 Eike Stepper (Berlin, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html