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

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

final class LockAttemptResult<K>
extends Object

The result of attempting to request a lock.

See Also:
LockManager

Field Summary
(package private)  Locker<K> conflict
          A conflicting locker, if the request was not granted, or null.
(package private)  LockRequest<K> request
          The lock request.
 
Constructor Summary
LockAttemptResult(LockRequest<K> request, Locker<K> conflict)
          Creates an instance of this class.
 
Method Summary
 String toString()
          Print fields, for debugging.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

request

final LockRequest<K> request
The lock request.


conflict

final Locker<K> conflict
A conflicting locker, if the request was not granted, or null.

Constructor Detail

LockAttemptResult

LockAttemptResult(LockRequest<K> request,
                  Locker<K> conflict)
Creates an instance of this class.

Parameters:
request - the lock request
conflict - a conflicting locker or null
Method Detail

toString

public String toString()
Print fields, for debugging.

Overrides:
toString in class Object

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