Package com.hazelcast.cp
Interface CPDataStructureManagementService
public interface CPDataStructureManagementService
Provides utility operations for managing CP data structures.
- Since:
- 5.7.0
-
Method Summary
Modifier and TypeMethodDescriptionpurgeCPMap(String mapName, Duration age) Purges entries from the specifiedCPMapthat are older than the given duration.
-
Method Details
-
purgeCPMap
Purges entries from the specifiedCPMapthat are older than the given duration.- Parameters:
mapName- the name of the CPMapage- the age threshold; entries older than this duration are removed- Returns:
- a
CPMapPurgeResponsecontaining the number of purged entries and the timestamp of the oldest remaining entry - Throws:
IllegalArgumentException- if no CP group exists for the givenmapNameIllegalStateException- if the CP group exists but the CPMap with the givenmapNamehas not been createdUnsupportedOperationException- if purge is not enabled for the given CPMap or if the cluster version is earlier than 5.7NullPointerException- ifmapNameorageisnull- See Also:
-