C
- container of the data structurepublic abstract class AbstractNamedContainerCollector<C> extends AbstractContainerCollector<C>
AbstractContainerCollector
for data structures which reference their containers by name.AbstractContainerCollector.EmptyIterator
Modifier and Type | Field and Description |
---|---|
protected ConcurrentMap<String,C> |
containers |
Modifier | Constructor and Description |
---|---|
protected |
AbstractNamedContainerCollector(NodeEngine nodeEngine,
ConcurrentMap<String,C> containers) |
Modifier and Type | Method and Description |
---|---|
protected Iterator<C> |
containerIterator(int partitionId)
Returns all containers of the data structure for the given partition ID.
|
protected void |
onIteration(String containerName,
C container)
Will be called by
ContainerIterator#hasNext() . |
destroy, destroy, destroyBackup, getCollectedContainers, getMergePolicyConfig, getMergingValueCount, isMergeable, onDestroy, run
protected final ConcurrentMap<String,C> containers
protected AbstractNamedContainerCollector(NodeEngine nodeEngine, ConcurrentMap<String,C> containers)
protected final Iterator<C> containerIterator(int partitionId)
AbstractContainerCollector
containerIterator
in class AbstractContainerCollector<C>
Iterator
over the containers of the given partitionprotected void onIteration(String containerName, C container)
ContainerIterator#hasNext()
.
Can be overridden by implementations to save the relation between container name and container.
containerName
- the name of the removed containercontainer
- the removed containerCopyright © 2022 Hazelcast, Inc.. All Rights Reserved.