T- the type of objects accessed
public interface DataAccess<T> extends StatefulCopyable<DataAccess<T>>, Marshallable
Dataobject, cached inside the
DataAccessinstance. This strategy interface is suitable for types of objects, that are already in fact sequences of bytes (
ByteBuffer, etc.) and shouldn't be serialized, and allows to avoid extra data copying. Accessed bytes should be later readable by some
|Modifier and Type||Method and Description|
$equals, $fieldInfos, $hashCode, $toString, copyFrom, deepCopy, fromFile, fromFile, fromFileAsMap, fromFileAsMap, fromHexString, fromString, getField, mergeToMap, readMarshallable, setField, writeMarshallable
Dataaccessor to the bytes of the given object. Typically a
Datainstance should be cached in a field of this
DataAccess, so always the same object is returned.
instance- the object to access bytes (serialized form) of
getData(Object)method) in caching fields of this
DataAccessor the cached
Dataobject, returned from
DataAccessis cached itself in thread-local variables for
ChronicleHashinstances, this method prevents leaking of accessed objects (they are not eligible for garbage collection while there are some references).
Copyright © 2017. All rights reserved.