All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hazelcast.map.record.ObjectRecordWithStats Maven / Gradle / Ivy

There is a newer version: 5.0-BETA-1
Show newest version
package com.hazelcast.map.record;

import com.hazelcast.nio.serialization.Data;

class ObjectRecordWithStats extends AbstractRecordWithStats {

    private Object value;

    public ObjectRecordWithStats() {
    }

    public ObjectRecordWithStats(Data key, Object value) {
        super(key);
        this.value = value;
    }

    @Override
    public Object getValue() {
        return value;
    }

    @Override
    public void setValue(Object value) {
        this.value = value;
    }

    @Override
    public void invalidate() {
        value = null;
    }

    @Override
    public long getCost() {
        return 0L;
    }
}