public interface SnapshotCache<T> extends Cache<T>
| Modifier and Type | Method and Description |
|---|---|
boolean |
clearSnapshot(T group)
Clears the most recently set
Snapshot and associated metadata for the given node group. |
Snapshot |
getSnapshot(T group)
Returns the most recently set
Snapshot for the given node group. |
void |
setSnapshot(T group,
Snapshot snapshot)
Set the
Snapshot for the given node group. |
groups, statusInfocreateWatchboolean clearSnapshot(T group)
Snapshot and associated metadata for the given node group.
Should only be called when the Snapshot will no longer be needed, e.g. when there
are no open watches for the group.
Implementations are free to ignore this call should it possibly leave the cache in a bad
state, e.g. causing watches to hang waiting for Snapshot options that will never happen.
group - group identifierSnapshot getSnapshot(T group)
Snapshot for the given node group.group - group identifiervoid setSnapshot(T group, Snapshot snapshot)
Snapshot for the given node group. Snapshots should have distinct versions and be internally
consistent (i.e. all referenced resources must be included in the snapshot).group - group identifiersnapshot - a versioned collection of node config dataCopyright © 2018 The Envoy Project. All rights reserved.