public abstract class AbstractTimingStore extends Object
TimingEntrys. The maximum size of the store
is set on creation. The store internally uses a synchronizedList, which verifies the size of the collection
isn't greater than the maximum upon insertion, and removes the oldest entry if it is.
Read operations are not synchronized.| Modifier and Type | Field and Description |
|---|---|
protected List<TimingEntry> |
durationStore
The duration store, limited to the number of entries specified by the configuration set by administrator.
|
protected int |
maxEntries
The maximum number of entries allowed.
|
| Constructor and Description |
|---|
AbstractTimingStore(int maxEntries)
Constructs a new AbstractTimingStore instance.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getDurationAverage()
Getter for the average length of time events recorded in the duration store have taken.
|
int |
getMaxEntries()
Returns the maximum entries for this store.
|
String |
getSlowestEvaluation()
Returns a string representation of the slowest performing policy evaluation.
|
long |
getSlowestEvaluationDuration()
Returns the long representation of the slowest performing policy evaluation.
|
protected final int maxEntries
protected final List<TimingEntry> durationStore
public AbstractTimingStore(int maxEntries)
maxEntries - The maximum number of entries.public long getDurationAverage()
public String getSlowestEvaluation()
public long getSlowestEvaluationDuration()
public int getMaxEntries()
Copyright © 2010–2023 Open Identity Platform Community. All rights reserved.