SingleChronicleHashReplication
and ReplicationHub
.AbstractReplication
configurations.T
class instances as ordered byte
sequence.Access
implementations.identifier
.ReplicationHub.Builder
.getXXX()
reads from the given input
are performed.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.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.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.ChronicleMapStatelessClientBuilder.<K, V>of(serverAddress).create()
.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.fromTimeStamp
or newer.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
.offset
in the byte sequence represented by the given
input
, returned widened to int
.[offset, offset + 3]
bytes of the byte sequence represented by the given
input
as a single int
value.[offset, offset + 7]
bytes of the byte sequence represented by the given
input
as a single long
value.[offset, offset + 1]
bytes of the byte sequence represented by the given
input
as a single short
value, returned widened to int
.getByte(input, offset) & 0xFF
.getInt(input, offset) & 0xFFFFFFFFL
.getShort(input, offset) & 0xFFFF
.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.len
continuous bytes of the given input
object,
starting from the given offset.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.ChronicleMapBuilder
and
ChronicleMapStatelessClientBuilder
.ChronicleMap
key events occur.ChronicleHash
es, created
by this builder, could take.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.ChronicleMap.getUsing(java.lang.Object, java.lang.Object)
ChronicleMap.getUsingLocked(java.lang.Object, java.lang.Object)
ChronicleMap.acquireUsing(java.lang.Object, java.lang.Object)
ChronicleMap.acquireUsingLocked(java.lang.Object, java.lang.Object)
for example like this :ChronicleMap.getUsing(java.lang.Object, java.lang.Object)
ChronicleMap.getUsingLocked(java.lang.Object, java.lang.Object)
ChronicleMap.acquireUsing(java.lang.Object, java.lang.Object)
ChronicleMap.acquireUsingLocked(java.lang.Object, java.lang.Object)
for example like this :callback.onEntry()
.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.EngineReplicationLangBytes.EngineModificationIterator.hasNext()
will return trueget
,
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.MapBuilder
should return 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.MapBuilder
should return 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 ChronicleHashInstanceBuilder.replicatedViaChannel(ReplicationChannel)
method, to establish a channel
replication.ReplicationHub
s.modificationNotifier
is called when ever there is a change applied to the
modification iteratorbytes
starts (from the bytes
' position) with the byte sequence the given object
is serialized to, without actual serialization.TimeProvider.currentTimeMillis()
to System.currentTimeMillis()
.System.currentTimeMillis()
on every call to replicated ChronicleMap
or ChronicleSet
.Access
to any ByteBuffer
.Access
delegating getXXX(input, offset)
methods to sun.misc.Unsafe.getXXX(input, offset)
.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 © 2015. All rights reserved.