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) |
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, getName
and, getDesiredRateExpressions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
and, getDesiredRateExpressions
public 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
- Copyright © 2010–2015. All rights reserved.