Package org.teiid.common.buffer
Class CacheEntry
- java.lang.Object
-
- org.teiid.common.buffer.BaseCacheEntry
-
- org.teiid.common.buffer.CacheEntry
-
public class CacheEntry extends BaseCacheEntry
-
-
Constructor Summary
Constructors Constructor Description CacheEntry(Long oid)
CacheEntry(CacheKey key, int sizeEstimate, Object object, WeakReference<? extends Serializer<?>> serializer, boolean persistent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getObject()
Serializer<?>
getSerializer()
int
getSizeEstimate()
boolean
isPersistent()
Object
nullOut()
void
setObject(Object object)
void
setPersistent(boolean persistent)
void
setSerializer(WeakReference<? extends Serializer<?>> serializer)
-
-
-
Constructor Detail
-
CacheEntry
public CacheEntry(Long oid)
-
CacheEntry
public CacheEntry(CacheKey key, int sizeEstimate, Object object, WeakReference<? extends Serializer<?>> serializer, boolean persistent)
-
-
Method Detail
-
setObject
public void setObject(Object object)
-
getSizeEstimate
public int getSizeEstimate()
-
nullOut
public Object nullOut()
-
getObject
public Object getObject()
-
setPersistent
public void setPersistent(boolean persistent)
-
isPersistent
public boolean isPersistent()
-
setSerializer
public void setSerializer(WeakReference<? extends Serializer<?>> serializer)
-
getSerializer
public Serializer<?> getSerializer()
-
-