|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<IStoreProvider.LockMode> org.electrocodeogram.cpc.core.api.provider.store.IStoreProvider.LockMode
public static enum IStoreProvider.LockMode
Determines the behaviour of the
IStoreProvider.acquireWriteLock(LockMode)
exclusive write lock.
IStoreProvider.acquireWriteLock(LockMode)
,
IStoreProvider.releaseWriteLock()
Enum Constant Summary | |
---|---|
DEFAULT
The default locking behaviour. |
|
NO_MODIFICATION_EVENT
A registered IStoreProviderWriteLockHook will be notified and will be given
the opportunity to transfer any dirty clone data back to the store provider before
this lock request is granted. |
|
NO_WRITE_LOCK_HOOK_NOTIFY
CloneModificationEvent s for all modified clones will be generated when the lock is released. |
|
NO_WRITE_LOCK_HOOK_NOTIFY_NO_MODIFICATION_EVENT
Combination of NO_WRITE_LOCK_HOOK_NOTIFY and NO_MODIFICATION_EVENT . |
Method Summary | |
---|---|
static IStoreProvider.LockMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static IStoreProvider.LockMode[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final IStoreProvider.LockMode DEFAULT
IStoreProviderWriteLockHook
will be notified and will be given
the opportunity to transfer any dirty clone data back to the store provider before
this lock request is granted.
CloneModificationEvent
s for all modified clones will be generated when the lock is released.
public static final IStoreProvider.LockMode NO_MODIFICATION_EVENT
IStoreProviderWriteLockHook
will be notified and will be given
the opportunity to transfer any dirty clone data back to the store provider before
this lock request is granted.
CloneModificationEvent
s will be generated. It is up to the caller to ensure
that such events are generated and dispatched as required.
public static final IStoreProvider.LockMode NO_WRITE_LOCK_HOOK_NOTIFY
CloneModificationEvent
s for all modified clones will be generated when the lock is released.
IStoreProviderWriteLockHook
about the lock request.
IMPORTANT: This mode may only be used by the module which owns the currently registered write lock hook (in practice this means that it should not be used outside of CPC Track).
Rationale:
This mode allows the owner of the write lock hook which was registered via
IStoreProvider.setWriteLockHook(IStoreProviderWriteLockHook)
to acquire a lock without
having to filter out its own lock requests in the write lock hook.
public static final IStoreProvider.LockMode NO_WRITE_LOCK_HOOK_NOTIFY_NO_MODIFICATION_EVENT
NO_WRITE_LOCK_HOOK_NOTIFY
and NO_MODIFICATION_EVENT
.
CloneModificationEvent
s generated nor is any registered IStoreProviderWriteLockHook
notified about this request.
Method Detail |
---|
public static IStoreProvider.LockMode[] values()
for (IStoreProvider.LockMode c : IStoreProvider.LockMode.values()) System.out.println(c);
public static IStoreProvider.LockMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |