package org.ehcache.impl.internal.store.offheap;
import org.ehcache.core.spi.store.Store;
import java.util.concurrent.TimeUnit;
public class BasicOffHeapValueHolder<V> extends OffHeapValueHolder<V> {
private final V value;
public BasicOffHeapValueHolder(long id, V value, long creationTime, long expireTime) {
this(id, value, creationTime, expireTime, 0);
}
public BasicOffHeapValueHolder(long id, V value, long creationTime, long expireTime, long lastAccessTime) {
super(id, creationTime, expireTime);
setLastAccessTime(lastAccessTime);
this.value = value;
}
@Override
void updateMetadata(Store.ValueHolder<V> valueFlushed) {
throw new UnsupportedOperationException();
}
@Override
void writeBack() {
throw new UnsupportedOperationException();
}
@Override
void forceDeserialization() {
throw new UnsupportedOperationException();
}
@Override
void detach() {
throw new UnsupportedOperationException();
}
@Override
public V get() {
return value;
}
}