SingleChronicleHashReplication
and ReplicationHub
.AbstractReplication
configurations.ReplicationHub.Builder
.Byteables
, byte[]
arrays, other primitive arrays, "flat" objects
(with primitives fields only), particularly boxed primitive types.entry
state (position,
limit).
Methods must not update entry bytes, except in metadata area
From metaDataPos
offset metadata area starts in the given entry
, listener
should be itself aware of it's length (see ChronicleMapBuilder.metaDataBytes(int)
).
From keyPos
offset key area in the given entry
, serialized key size
(using ChronicleMapBuilder.keySizeMarshaller(SizeMarshaller)), directly followed
by the serialized key itself.
From valuePos
offset value area in the given entry
, serialized value size
(using ChronicleMapBuilder.keySizeMarshaller(SizeMarshaller)), then (optionally)
alignment (see ChronicleMapBuilder.entryAndValueAlignment(Alignment)
), followed by the serialized value itself.
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
manages ChronicleMap
configurations; could be used as
a classic builder and/or factory.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()
calls, if the key is absent in the map, created by this builder.ChronicleMapBuilder.defaultValueProvider(DefaultValueProvider)
configuration.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.File
storing them in JSON format, an attempt is
made where possible to use standard java serialisation and keep the data human readable, data
serialized using the custom serialises are converted to a binary format which is not human
readable but this is only done if the Keys or Values are not Serializable
.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, or key type is
eligible for data value generation, or configured custom key reader implements DeserializationFactoryConfigurableBytesReader
, in maps, created by this builder.Byteable
, BytesMarshallable
or Externalizable
subclass, or key type is
eligible for data value generation, or configured custom key reader implements DeserializationFactoryConfigurableBytesReader
, in maps, 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.ChronicleHash
es, replicated via ReplicationHub
s, created by this builder.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
.acquireUsing()
call on maps, created by this builder.Byteable
value during chronicleMap.acquireUsing()
call, when the given key is absent in the map.File
, the fromFile
must be created
using or the same format as ChronicleMap.get(java.lang.Object)
, this method behaves
similar to Map.put(java.lang.Object, java.lang.Object)
where existing
entries are overwritten.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(int)
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, or value type
is eligible for data value generation, or configured custom value reader is an instance of
DeserializationFactoryConfigurableBytesReader
, 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.