AbstractChronicleMapBuilder
manages most of ChronicleMap
configurations; has two concrete
subclasses: ChronicleMapBuilder
should be used to create maps with ordinary values, OffHeapUpdatableChronicleMapBuilder
-- maps with Byteable
values, which point directly to off-heap
memory; could be used as a classic builder and/or factory.SingleChronicleHashReplication
and ReplicationHub
.AbstractReplication
configurations.ReplicationHub.Builder
.Byteables
, byte[]
arrays, other primitive arrays, "flat" objects
(with primitives fields only), particularly boxed primitive types.Bytes
passed to MapEventListener
methods, printed in ASCII
coding.BytesMarshallerFactory
to be used with BytesMarshallableSerializer
, which is a default ObjectSerializer
,
to serialize/deserialize data to/from off-heap memory in hash containers, created by this
builder.Bytes
, mirroring the BytesWriter
, i.Bytes
writer) which 1) knows the length of serialized form
of any object before actual serialization 2) doesn't include that length in the serialized
form itself, assuming it will be passed by the ChronicleHash
into
BytesReader.read(Bytes, long)
deserialization method.ChronicleMap
and ChronicleSet
, related to off-heap
memory management and file-mapping.ChronicleMapBuilder
and
ChronicleSetBuilder
, i.ConcurrentMap
interface, stores the data off-heap.ChronicleMapBuilder
is intended to be used to configure ChronicleMap
s with
non-Byteable
values, which don't point to off-heap memory directly, including primitives
(Long
, Double
, etc.), String
s and CharSequence
s, values
implementing BytesMarshallable
, Externalizable
or Serializable
interface,
or any other values for which custom marshaller
is provided.ChronicleSetBuilder
manages the whole set of ChronicleSet
configurations, could be used as
a classic builder and/or factory.ReplicationChannel
in this ReplicationHub
with the given
identifier.acquireUsing()
method, if the key is absent in the map, created by this builder.acquireUsing()
method, if the key is absent in the map, created by this builder.acquireUsing()
method, if the key is absent in the map, created by this builder.acquireUsing()
calls, if the key is absent in the map, created by this builder.acquireUsing()
calls, if the key is absent in the map, created by this builder.AbstractChronicleMapBuilder.defaultValueProvider(DefaultValueProvider)
configuration.acquireUsing()
calls, if the key is absent in the map, created by this builder.null
if this map contains no mapping
for the key.ChronicleMap.acquireUsing(Object, Object)
call
for the specified key, if it is absent in the map.value
object, if
possible, or returns null
, if this map contains no mapping for the key.getUsing(K key, V usingValue);
but in addition read locks the map
segment to operations to be performed atomically.Byteable
, BytesMarshallable
or Externalizable
subclass in maps,
created by this builder.Byteable
, BytesMarshallable
or Externalizable
subclass in maps,
created by this builder.BytesMarshaller
used to serialize/deserialize keys to/from off-heap
memory in hash containers, created by this builder.BytesMarshaller
used to serialize/deserialize keys to/from off-heap
memory in hash containers, created by this builder.ChronicleMap
key events occur.MapEventListener
.ChronicleHash
es, replicated via ReplicationHub
s, created by this builder.ReplicationHub
.ChronicleMaps
(net.openhft.chronicle.map
package) and
ChronicleSets
(net.openhft.chronicle.set
package).ChronicleSet
interface and
ChronicleSetBuilder
class.Externalizable
or BytesMarshallable
(for example, if data is loosely typed and just
Object
is specified as the data class), or nullable data, and if custom marshaller is
not configured, in hash containers, created by
this builder.Externalizable
or BytesMarshallable
(for example, if data is loosely typed and just
Object
is specified as the data class), or nullable data, and if custom marshaller is
not configured, in hash containers, created by
this builder.Externalizable
or BytesMarshallable
(for example, if data is loosely typed and just
Object
is specified as the data class), or nullable data, and if custom marshaller is
not configured, in hash containers, created by
this builder.ChronicleMapBuilder
instance which is able to create maps with the specified key and value classes.get
, getUsing
or acquireUsing
method call.put
, putIfAbsent
, replace
, etc.Byteable
.Byteable
value during chronicleMap.acquireUsing()
call, when the given key is absent in the map.acquireUsing()
call on maps, created by this builder.null
instead of previous mapped
values on ChornicleMap.put(key, value)
calls.[position(), position() + size]
bytes of the given
Bytes
.BytesReader.read(Bytes, long)
, but should attempt to reuse the given object, i.null
instead of the last mapped
value on ChronicleMap.remove(key)
calls.replication(SimpleReplication.builder()
.tcpTransportAndNetwork(tcpTransportAndNetwork).createWithId(identifier))
.ReplicationHub.createChannel(short)
call and passed
to ChronicleHashInstanceConfig.replicatedViaChannel(ReplicationChannel)
method, to
establish a channel replication.ReplicationHub
s.bytes
starts (from the bytes
' position) with the byte sequence the given object
is serialized to, without actual serialization.ChronicleHash
implementation, this stateless implementation will be
referred to as a stateless client as it
will not hold any of its own data locally, the stateless client will perform Remote Procedure
Calls ( RPC ) to another ChronicleMap
or ChronicleSet
which we will refer to
as the server.TimeProvider.currentTimeMillis()
to System.currentTimeMillis()
.System.currentTimeMillis()
on every call to replicated ChronicleMap
or ChronicleSet
.Byteable
, BytesMarshallable
or Externalizable
subclass in maps, created by this
builder.Byteable
, BytesMarshallable
or Externalizable
subclass in maps, created by this
builder.BytesMarshaller
used to serialize/deserialize values to/from off-heap
memory in maps, created by this builder.bytes
, without writing the length of the
serialized form itself.Copyright © 2014. All rights reserved.