com.hazelcast.concurrent.lock

## Interface LockResource

-     public interface LockResource

  A lock for a specific key in a specific namespace. It contains the details of a single lock in the system.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `long` | `getAcquireTime()`
    `long` | `getExpirationTime()`
    `Data` | `getKey()`
    `int` | `getLockCount()`
    `String` | `getOwner()`
    `long` | `getRemainingLeaseTime()`
    `long` | `getThreadId()`
    `int` | `getVersion()`
    `boolean` | `isLocal()`
    `boolean` | `isLocked()`
    `boolean` | `isLockedBy(String owner, long threadId)`
    `boolean` | `isTransactional()`
    `boolean` | `shouldBlockReads()`

- - ### Method Detail

    - #### getKey

          Data getKey()

    - #### isLocked

          boolean isLocked()

    - #### isLockedBy

          boolean isLockedBy(String owner,
                             long threadId)

    - #### getOwner

          String getOwner()

    - #### isTransactional

          boolean isTransactional()

    - #### isLocal

          boolean isLocal()

    - #### shouldBlockReads

          boolean shouldBlockReads()

    - #### getThreadId

          long getThreadId()

    - #### getLockCount

          int getLockCount()

    - #### getAcquireTime

          long getAcquireTime()

    - #### getRemainingLeaseTime

          long getRemainingLeaseTime()

    - #### getExpirationTime

          long getExpirationTime()

    - #### getVersion

          int getVersion()

Copyright © 2019. All rights reserved.