|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjconch.pipeline.PipeLink<T>
jconch.pipeline.impl.UnboundedPipeLink<T>
public class UnboundedPipeLink<T>
An unbounded link in the pipeline. This is a very fast implementation of a link, but allows potentially unlimited elements to build up, which can be counter-productive to the multithreaded approach.
| Constructor Summary | |
|---|---|
UnboundedPipeLink()
Creates a new intance of UnboundedPipeLink. |
|
| Method Summary | |
|---|---|
int |
getRemainingCapacity()
Have to override this because LinkedBlockingQueue.remainingCapacity() doesn't work as expected --
apparently an unbounded queue runs low on space after you insert
elements. |
| Methods inherited from class jconch.pipeline.PipeLink |
|---|
add, breakLink, clearQueue, get, getAddTimeout, getFetchTimeout, getQueueLength, registerSource, setAddTimeout, setFetchTimeout, start |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UnboundedPipeLink()
UnboundedPipeLink.
| Method Detail |
|---|
public int getRemainingCapacity()
LinkedBlockingQueue.remainingCapacity() doesn't work as expected --
apparently an unbounded queue runs low on space after you insert
elements.
Provides an estimate of the number of elements the queue could
additionally hold.
getRemainingCapacity in class PipeLink<T>Integer.MAX_VALUE if it is unbounded.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||