com.tc.object.locks
Interface LockID

All Superinterfaces:
java.lang.Comparable, java.io.Serializable, TCSerializable
All Known Implementing Classes:
UnclusteredLockID

public interface LockID
extends TCSerializable, java.io.Serializable, java.lang.Comparable

Terracotta locks are taken on instances implementing LockID.

LockID implementations must implement this interface and be well behaved Map key types. That this must have equals and hashCode methods that honor the JDK contracts.


Nested Class Summary
static class LockID.LockIDType
          Enum of all known LockID types - this is used in TCSerialization code
 
Method Summary
 LockID.LockIDType getLockType()
          Returns the type of this LockID
 
Methods inherited from interface com.tc.io.TCSerializable
deserializeFrom, serializeTo
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getLockType

LockID.LockIDType getLockType()
Returns the type of this LockID

Used to determine the TCSerialization format that should be used when sending over the network.



Copyright © 2010 Terracotta, Inc.. All Rights Reserved.