T - the type of values in the queuepublic class Queue<T> extends DesiredRateExpressionImpl<List<T>>
The expression can be used to collect values from pvmanager datasources or from external sources.
| Constructor and Description |
|---|
Queue(int maxSize)
Creates a new queue expression.
|
Queue(SourceRateExpression<T> sourceExpression,
int maxSize)
Creates a new queue expression.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(T newValue)
Adds a new value to the queue
|
WriteFunction<T> |
getWriteFunction()
The write function to be used to fill the queue.
|
Queue<T> |
maxSize(int maxSize)
Changes the maximum size of the queue.
|
as, fillReadRecipe, getDesiredRateExpressionImpl, getFunction, getNameand, getDesiredRateExpressionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitand, getDesiredRateExpressionspublic Queue(int maxSize)
maxSize - the maximum number of elements in the cachepublic Queue(SourceRateExpression<T> sourceExpression, int maxSize)
sourceExpression - the source rate expression that will fill the queuemaxSize - the maximum number of elements in the cachepublic WriteFunction<T> getWriteFunction()
public Queue<T> maxSize(int maxSize)
maxSize - the number of values kept in the queuepublic void add(T newValue)
newValue - the new valueCopyright © 2015. All rights reserved.