com.sun.sgs.impl.util.lock
Class LockConflict<K>

java.lang.Object
  extended by com.sun.sgs.impl.util.lock.LockConflict<K>
Type Parameters:
K - the type of key

public final class LockConflict<K>
extends Object

A class for representing a conflict resulting from a lock request made to a LockManager.


Field Summary
(package private)  Locker<K> conflictingLocker
          A locker that caused the conflict.
(package private)  LockConflictType type
          The type of conflict.
 
Constructor Summary
LockConflict(LockConflictType type, Locker<K> conflictingLocker)
          Creates an instance of this class.
 
Method Summary
 Locker<K> getConflictingLocker()
          Returns a transaction that caused the conflict.
 LockConflictType getType()
          Returns the type of conflict.
 String toString()
          Returns a string representation of this instance, for debugging.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

type

final LockConflictType type
The type of conflict.


conflictingLocker

final Locker<K> conflictingLocker
A locker that caused the conflict.

Constructor Detail

LockConflict

public LockConflict(LockConflictType type,
                    Locker<K> conflictingLocker)
Creates an instance of this class.

Parameters:
type - the type of conflict
conflictingLocker - a locker that caused the conflict
Method Detail

getType

public LockConflictType getType()
Returns the type of conflict.

Returns:
the type of conflict

getConflictingLocker

public Locker<K> getConflictingLocker()
Returns a transaction that caused the conflict.

Returns:
a transaction that caused the conflict

toString

public String toString()
Returns a string representation of this instance, for debugging.

Overrides:
toString in class Object
Returns:
a string representation of this instance

RedDwarf, Version 0.10.1
2010-03-14 10:56:12

Copyright © 2010 The RedDwarf Authors. All rights reserved
Copyright © 2007-2010 Sun Microsystems, Inc. All rights reserved