Package org.eclipse.emf.cdo.common
Interface CDOCommonSession.Options
- All Superinterfaces:
org.eclipse.net4j.util.event.INotifier,org.eclipse.net4j.util.options.IOptions
- All Known Subinterfaces:
CDONet4jSession.Options,CDOSession.Options,CDOSession.Options,InternalSession
- Enclosing interface:
- CDOCommonSession
public static interface CDOCommonSession.Options
extends org.eclipse.net4j.util.options.IOptions
Encapsulates the configuration options of CDO sessions that are common to both client and server side.
- Author:
- Simon McDuff
- No Implement
- This interface is not intended to be implemented by clients.
- No Extend
- This interface is not intended to be extended by clients.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceAnoptions eventfired when thelock notification modeof a CDO session has changed.static enumEnumerates the possiblelock notification modesof a CDO session.static interfaceAnoptions eventfired when thelock notification modeof a CDO session has changed.static interfaceAnoptions eventfired when thepassive update modeof a CDO session has changed.static enumEnumerates the possiblepassive update modesof a CDO session.Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifier
org.eclipse.net4j.util.event.INotifier.INotifier2 -
Method Summary
Modifier and TypeMethodDescriptionReturns thesessionof this options object.booleanbooleanvoidsetLockNotificationEnabled(boolean enabled) voidvoidsetPassiveUpdateEnabled(boolean enabled) Specifies whether objects will be invalidated due by other users changes.voidMethods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
-
Method Details
-
getContainer
CDOCommonSession getContainer()Returns thesessionof this options object.- Specified by:
getContainerin interfaceorg.eclipse.net4j.util.options.IOptions- Since:
- 4.0
-
isPassiveUpdateEnabled
boolean isPassiveUpdateEnabled() -
setPassiveUpdateEnabled
void setPassiveUpdateEnabled(boolean enabled) Specifies whether objects will be invalidated due by other users changes.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.
- Since:
- 3.0
-
getPassiveUpdateMode
CDOCommonSession.Options.PassiveUpdateMode getPassiveUpdateMode()- Since:
- 3.0
-
setPassiveUpdateMode
- Since:
- 3.0
-
isLockNotificationEnabled
boolean isLockNotificationEnabled()- Since:
- 4.15
-
setLockNotificationEnabled
void setLockNotificationEnabled(boolean enabled) - Since:
- 4.15
-
getLockNotificationMode
CDOCommonSession.Options.LockNotificationMode getLockNotificationMode()- Since:
- 4.1
-
setLockNotificationMode
- Since:
- 4.1
-