T
- Tuple typepublic static class StreamScope.BufferManager<T>
extends java.lang.Object
Captured tuples are retained until either:
The default configuration is a maxCount of 10.
Constructor and Description |
---|
BufferManager() |
Modifier and Type | Method and Description |
---|---|
void |
setMaxRetentionCount(int maxCount)
Set the maximum number of tuples to retain.
|
void |
setMaxRetentionTime(long age,
java.util.concurrent.TimeUnit unit)
Set the maximum retention time of a tuple.
|
java.lang.String |
toString() |
public void setMaxRetentionCount(int maxCount)
The capture buffer is cleared.
maxCount
- the maximum number of tuples to retain.
Specify 0 to disable count based retention.public void setMaxRetentionTime(long age, java.util.concurrent.TimeUnit unit)
The capture buffer is cleared.
age
- the amount of time to retain a tuple.
Specify 0 to disable age based retention.unit
- TimeUnit
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2016 The Apache Software Foundation. All Rights Reserved - bbe71fa-20161201-1641