org.objectweb.cjdbc.controller.scheduler.schema
Class TransactionExclusiveLock.WaitingListElement

java.lang.Object
  extended byorg.objectweb.cjdbc.controller.scheduler.schema.TransactionExclusiveLock.WaitingListElement
Enclosing class:
TransactionExclusiveLock

private class TransactionExclusiveLock.WaitingListElement
extends java.lang.Object

The element stored in the waiting list is the waiting thread and the transaction id of the request waiting.


Field Summary
(package private)  java.lang.Thread thread
          Waiting thread
(package private)  long transactionId
          Transaction id of the request waiting.
 
Constructor Summary
(package private) TransactionExclusiveLock.WaitingListElement(java.lang.Thread thread, long transactionId)
          Creates a new WaitingListElement instance.
 
Method Summary
 java.lang.Thread getThread()
          Returns the waiting thread.
 long getTransactionId()
          Returns the transaction id of the request waiting.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

thread

java.lang.Thread thread
Waiting thread


transactionId

long transactionId
Transaction id of the request waiting.

Constructor Detail

TransactionExclusiveLock.WaitingListElement

TransactionExclusiveLock.WaitingListElement(java.lang.Thread thread,
                                            long transactionId)
Creates a new WaitingListElement instance.

Parameters:
thread - the waiting thread.
transactionId - the transaction id of the request waiting.
Method Detail

getTransactionId

public long getTransactionId()
Returns the transaction id of the request waiting.

Returns:
an int value

getThread

public java.lang.Thread getThread()
Returns the waiting thread.

Returns:
a Thread value


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.