| 
 | Apache Tomcat 6.0.53 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.catalina.tribes.transport.bio.util.FastQueue
public class FastQueue
A fast queue that remover thread lock the adder thread. 
Limit the queue
 length when you have strange producer thread problemes.
 
 FIXME add i18n support to log messages
| Constructor Summary | |
|---|---|
| FastQueue()Generate Queue SingleRemoveSynchronizedAddLock and set add and wait Timeouts | |
| Method Summary | |
|---|---|
|  boolean | add(ChannelMessage msg,
    Member[] destination,
    InterceptorPayload payload)Add new data to the queue FIXME extract some method | 
|  long | getAddWaitTimeout()get current add wait timeout | 
|  SingleRemoveSynchronizedAddLock | getLock() | 
|  int | getMaxQueueLength() | 
|  int | getMaxSize() | 
|  long | getRemoveWaitTimeout()get current remove wait timeout | 
|  int | getSize() | 
|  boolean | isCheckLock() | 
|  boolean | isEnabled() | 
|  LinkObject | remove()remove the complete queued object list FIXME extract some method | 
|  void | setAddWaitTimeout(long timeout)Set add wait timeout (default 10000 msec) | 
|  void | setCheckLock(boolean checkLock) | 
|  void | setEnabled(boolean enable) | 
|  void | setMaxQueueLength(int length) | 
|  void | setMaxSize(int size) | 
|  void | setRemoveWaitTimeout(long timeout)set remove wait timeout ( default 30000 msec) | 
|  void | start()start queuing | 
|  void | stop()start queuing | 
|  void | unlockAdd()unlock queue for next add | 
|  void | unlockRemove()unlock queue for next remove | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public FastQueue()
| Method Detail | 
|---|
public long getAddWaitTimeout()
public void setAddWaitTimeout(long timeout)
timeout - public long getRemoveWaitTimeout()
public void setRemoveWaitTimeout(long timeout)
timeout - public int getMaxQueueLength()
public void setMaxQueueLength(int length)
public boolean isEnabled()
public void setEnabled(boolean enable)
public boolean isCheckLock()
public void setCheckLock(boolean checkLock)
checkLock - The checkLock to set.public int getMaxSize()
public void setMaxSize(int size)
size - public void unlockAdd()
public void unlockRemove()
public void start()
public void stop()
public int getSize()
public SingleRemoveSynchronizedAddLock getLock()
public boolean add(ChannelMessage msg,
                   Member[] destination,
                   InterceptorPayload payload)
public LinkObject remove()
| 
 | Apache Tomcat 6.0.53 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||