wt.wrmf.transport
Class ThreadAdapter

java.lang.Object
  extended bywt.wrmf.transport.ThreadAdapter

public class ThreadAdapter
extends Object


Field Summary
private  int activeThreads
           
private  boolean[] idleStatus
           
private  Object monitor
           
private  int totalThreads
           
 
Constructor Summary
ThreadAdapter(int _totalThreads)
           
 
Method Summary
 int getAvailableThread()
           
private  int getAvailableThread(int numOfTries)
           
 void releaseThread(int seq)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

idleStatus

private boolean[] idleStatus

monitor

private Object monitor

totalThreads

private int totalThreads

activeThreads

private int activeThreads
Constructor Detail

ThreadAdapter

public ThreadAdapter(int _totalThreads)
Method Detail

getAvailableThread

public int getAvailableThread()
                       throws WTException
Throws:
WTException

getAvailableThread

private int getAvailableThread(int numOfTries)
                        throws WTException
Throws:
WTException

releaseThread

public void releaseThread(int seq)