public abstract class Replicator extends Object
Modifier | Constructor and Description |
---|---|
protected |
Replicator()
A constructor for use in subclasses.
|
Modifier and Type | Method and Description |
---|---|
protected abstract Closeable |
applyTo(AbstractChronicleMapBuilder builder,
Replica map,
Replica.EntryExternalizable entryExternalizable,
ChronicleMap chronicleMap)
Applies the replicator to the map instance and returns a Closeable token to manage resources,
associated with the replication.
|
protected abstract Closeable applyTo(AbstractChronicleMapBuilder builder, Replica map, Replica.EntryExternalizable entryExternalizable, ChronicleMap chronicleMap) throws IOException
This method isn't intended to be called from the client code.
builder
- the builder from which the map was constructed. The replicator may
obtain some map configurations, not accessible via the map
instance.map
- a replicated map instance. Provides basic tools for replication
implementation.entryExternalizable
- the callback for ser/deser implementation in the replicatorchronicleMap
- to wrap.Closeable
token to control replication resources. It should be closed on
closing the replicated map.IOException
- if an io error occurred during the replicator setupIllegalStateException
- if this replicator doesn't support application to more than one
map (or the specified number of maps), and this replicator has
already been applied to a map (or the specified number of
maps)Copyright © 2014. All rights reserved.