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(ChronicleMapBuilder builder,
Replica map,
Replica.EntryExternalizable entryExternalizable)
Applies the replicator to the map instance and returns a Closeable token to manage resources,
associated with the replication.
|
abstract byte |
identifier()
Returns this node identifier within the replication topology.
|
public abstract byte identifier()
Replica.identifier()
protected abstract Closeable applyTo(ChronicleMapBuilder builder, Replica map, Replica.EntryExternalizable entryExternalizable) 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 replicatorCloseable
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.