public interface ChronicleHashInstanceBuilder<C extends ChronicleHash>
Modifier and Type | Method and Description |
---|---|
C |
create() |
ChronicleHashInstanceBuilder<C> |
name(String name) |
ChronicleHashInstanceBuilder<C> |
persistedTo(File file) |
ChronicleHashInstanceBuilder<C> |
replicated(byte identifier,
TcpTransportAndNetworkConfig tcpTransportAndNetwork) |
ChronicleHashInstanceBuilder<C> |
replicated(SingleChronicleHashReplication replication) |
ChronicleHashInstanceBuilder<C> |
replicatedViaChannel(ReplicationChannel channel)
Configures replication of the hash containers, created by this builder, via so called
"channels".
|
ChronicleHashInstanceBuilder<C> replicated(byte identifier, TcpTransportAndNetworkConfig tcpTransportAndNetwork)
ChronicleHashInstanceBuilder<C> replicated(SingleChronicleHashReplication replication)
ChronicleHashInstanceBuilder<C> replicatedViaChannel(ReplicationChannel channel)
Another way to establish replication is replicated(SingleChronicleHashReplication)
method
or it's shortcut: replicated(byte, TcpTransportAndNetworkConfig)
.
By default, hash containers, created by this builder doesn't replicate their data.
This method call overrides all previous replication configurations of this builder, made
either by means of this method, replicated(SingleChronicleHashReplication)
or replicated(byte, TcpTransportAndNetworkConfig)
method calls.
channel
- the channel responsible for gathering updates of hash containers,
created by this builder, and replicating them over networkreplicated(SingleChronicleHashReplication)
ChronicleHashInstanceBuilder<C> persistedTo(File file)
ChronicleHashInstanceBuilder<C> name(String name)
C create() throws IOException
IOException
Copyright © 2015. All rights reserved.