Package org.eclipse.emf.spi.cdo

## Interface CDOLockStateCache

- All Superinterfaces:
    `org.eclipse.net4j.util.lifecycle.IDeactivateable`, `org.eclipse.net4j.util.lifecycle.ILifecycle`, `org.eclipse.net4j.util.event.INotifier`

      public interface CDOLockStateCache
      extends org.eclipse.net4j.util.lifecycle.ILifecycle

  Since:
    4.15
  Author:
    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.

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle

      `org.eclipse.net4j.util.lifecycle.ILifecycle.DeferrableActivation`

    - ### Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifier

      `org.eclipse.net4j.util.event.INotifier.INotifier2`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `addLockStates​(CDOBranch branch, java.util.Collection<? extends CDOLockState> newLockStates, java.util.function.Consumer<CDOLockState> consumer)` |
    `java.lang.Object` | `createKey​(CDOBranch branch, CDOID id)` |
    `void` | `forEachLockState​(CDOBranch branch, CDOLockOwner owner, java.util.function.Consumer<CDOLockState> consumer)` |
    `CDOLockState` | `getLockState​(CDOBranch branch, CDOID id)` |
    `void` | `getLockStates​(CDOBranch branch, java.util.Collection<CDOID> ids, boolean loadOnDemand, java.util.function.Consumer<CDOLockState> consumer)` |
    `InternalCDOSession` | `getSession()` |
    `void` | `remapOwner​(CDOBranch branch, CDOLockOwner oldOwner, CDOLockOwner newOwner)` |
    `void` | `removeLockStates​(CDOBranch branch)` |
    `void` | `removeLockStates​(CDOBranch branch, java.util.Collection<CDOID> ids, java.util.function.Consumer<CDOLockState> consumer)` |
    `void` | `removeOwner​(CDOBranch branch, CDOLockOwner owner, java.util.function.Consumer<CDOLockState> changeConsumer)` |

    - ### Methods inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle

      `activate, deactivate, getLifecycleState, isActive`

    - ### Methods inherited from interface org.eclipse.net4j.util.event.INotifier

      `addListener, getListeners, hasListeners, removeListener`

- - ### Method Detail

    - #### getSession

          InternalCDOSession getSession()

    - #### createKey

          java.lang.Object createKey​(CDOBranch branch,
                                     CDOID id)

    - #### getLockState

          CDOLockState getLockState​(CDOBranch branch,
                                    CDOID id)

    - #### getLockStates

          void getLockStates​(CDOBranch branch,
                             java.util.Collection<CDOID> ids,
                             boolean loadOnDemand,
                             java.util.function.Consumer<CDOLockState> consumer)

    - #### forEachLockState

          void forEachLockState​(CDOBranch branch,
                                CDOLockOwner owner,
                                java.util.function.Consumer<CDOLockState> consumer)

    - #### addLockStates

          void addLockStates​(CDOBranch branch,
                             java.util.Collection<? extends CDOLockState> newLockStates,
                             java.util.function.Consumer<CDOLockState> consumer)

    - #### removeOwner

          void removeOwner​(CDOBranch branch,
                           CDOLockOwner owner,
                           java.util.function.Consumer<CDOLockState> changeConsumer)

    - #### remapOwner

          void remapOwner​(CDOBranch branch,
                          CDOLockOwner oldOwner,
                          CDOLockOwner newOwner)

    - #### removeLockStates

          void removeLockStates​(CDOBranch branch,
                                java.util.Collection<CDOID> ids,
                                java.util.function.Consumer<CDOLockState> consumer)

    - #### removeLockStates

          void removeLockStates​(CDOBranch branch)