com.h3c.dist.lock

## Class LockNameType

- java.lang.Object
- - com.h3c.dist.lock.LockName
  - - com.h3c.dist.lock.LockNameType

- All Implemented Interfaces:
    Serializable

      public class LockNameType
      extends LockName

  Place holder for lock name and type of a lock.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `LockNameType(LockType type, String... lockName)` LockNameType public constructor.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `LockType` | `getLockType()` Get the type`LockType` of the lock.

    - ### Methods inherited from class com.h3c.dist.lock.LockName

      `getName, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### LockNameType

          public LockNameType(LockType type,
                      String... lockName)

      LockNameType public constructor.
      Parameters:
        `type` - Type of the lock `LockType`
        `lockName` - Lock name hierarchy. At least one name is mandatory. The last String is considered to be the key. Multiple strings are to for the application purpose to identify a lock uniquely. For example, in case of a row level lock of a database, the argument passed would be TBL1, ROW1. Here ROW1 would be the key name and it is a key under the table TBL1.

  - ### Method Detail

    - #### getLockType

          public LockType getLockType()

      Get the type`LockType` of the lock.
      Returns:
        lock type

Copyright © 2014. All Rights Reserved.