Package com.hazelcast.cp
Record Class CPMapPurgeResponse
java.lang.Object
java.lang.Record
com.hazelcast.cp.CPMapPurgeResponse
- Record Components:
purgedCount- number of entries purgeoldestRemainingEntryTimestamp- the timestamp of oldest entry
public record CPMapPurgeResponse(int purgedCount, long oldestRemainingEntryTimestamp)
extends Record
Represents returned response of a
CPDataStructureManagementService.purgeCPMap(java.lang.String, java.time.Duration) call.- Since:
- 5.7.0
-
Constructor Summary
ConstructorsConstructorDescriptionCPMapPurgeResponse(int purgedCount, long oldestRemainingEntryTimestamp) Creates an instance of aCPMapPurgeResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theoldestRemainingEntryTimestamprecord component.intReturns the value of thepurgedCountrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CPMapPurgeResponse
public CPMapPurgeResponse(int purgedCount, long oldestRemainingEntryTimestamp) Creates an instance of aCPMapPurgeResponserecord class.- Parameters:
purgedCount- the value for thepurgedCountrecord componentoldestRemainingEntryTimestamp- the value for theoldestRemainingEntryTimestamprecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
purgedCount
public int purgedCount()Returns the value of thepurgedCountrecord component.- Returns:
- the value of the
purgedCountrecord component
-
oldestRemainingEntryTimestamp
public long oldestRemainingEntryTimestamp()Returns the value of theoldestRemainingEntryTimestamprecord component.- Returns:
- the value of the
oldestRemainingEntryTimestamprecord component
-