public class ChannelProvider.ChronicleChannel extends Replicator implements Closeable
Modifier and Type | Method and Description |
---|---|
protected 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.
|
void |
close() |
byte |
identifier() |
ChannelProvider |
provider() |
public byte identifier()
protected Closeable applyTo(AbstractChronicleMapBuilder builder, Replica map, Replica.EntryExternalizable entryExternalizable, ChronicleMap chronicleMap)
Replicator
This method isn't intended to be called from the client code.
applyTo
in class Replicator
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.public ChannelProvider provider()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2014. All rights reserved.