private static class TimedBuffer.EntitySum<S> extends Object
Modifier and Type | Field and Description |
---|---|
private TimeUnit |
binPrecision |
private EntityAccess<S> |
entityAccess |
private int |
numConfiguredBins |
private AtomicReference<S> |
ref |
Constructor and Description |
---|
EntitySum(TimeUnit binPrecision,
int numConfiguredBins,
EntityAccess<S> aggregator) |
Modifier and Type | Method and Description |
---|---|
private S |
add(S event) |
S |
addOrReset(S event) |
S |
getValue() |
boolean |
isExpired() |
private final EntityAccess<S> entityAccess
private final AtomicReference<S> ref
private final TimeUnit binPrecision
private final int numConfiguredBins
public EntitySum(TimeUnit binPrecision, int numConfiguredBins, EntityAccess<S> aggregator)
Copyright © 2015 Apache NiFi Project. All rights reserved.