public class ChannelProvider.ChronicleChannel extends Object implements Closeable
Modifier and Type | Method and Description |
---|---|
protected Closeable |
applyTo(ChronicleMapBuilder builder,
net.openhft.chronicle.map.Replica map,
net.openhft.chronicle.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() |
public byte identifier()
protected Closeable applyTo(ChronicleMapBuilder builder, net.openhft.chronicle.map.Replica map, net.openhft.chronicle.map.Replica.EntryExternalizable entryExternalizable, ChronicleMap chronicleMap)
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.public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2015. All rights reserved.