Package org.apache.cassandra.db
Class ClockAndCount
- java.lang.Object
-
- org.apache.cassandra.db.ClockAndCount
-
- All Implemented Interfaces:
IMeasurableMemory
public class ClockAndCount extends java.lang.Object implements IMeasurableMemory
-
-
Field Summary
Fields Modifier and Type Field Description static ClockAndCountBLANKlongclocklongcount
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ClockAndCountcreate(long clock, long count)booleanequals(java.lang.Object o)inthashCode()java.lang.StringtoString()longunsharedHeapSize()
-
-
-
Field Detail
-
BLANK
public static ClockAndCount BLANK
-
clock
public final long clock
-
count
public final long count
-
-
Method Detail
-
create
public static ClockAndCount create(long clock, long count)
-
unsharedHeapSize
public long unsharedHeapSize()
- Specified by:
unsharedHeapSizein interfaceIMeasurableMemory- Returns:
- the amount of on-heap memory retained by the object that might be reclaimed if the object were reclaimed, i.e. it should try to exclude globally cached data where possible, or counting portions of arrays that are referenced by the object but used by other objects only (e.g. slabbed byte-buffers), etc.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-