public static final class ReplicationHub.Builder extends AbstractReplication.Builder<ReplicationHub,ReplicationHub.Builder>
ReplicationHub
s.Modifier and Type | Method and Description |
---|---|
ReplicationHub |
createWithId(byte identifier)
Creates a Replication instance with the given node (server) identifier.
|
ReplicationHub.Builder |
maxEntrySize(int maxEntrySize)
Configures the maximum entry size of
ChronicleHash es, replicated via ReplicationHub s, created by this builder. |
ReplicationHub.Builder |
maxNumberOfChannels(int maxNumberOfChannels)
Configures the maximum number of channels could be #createChannel(short)
created for {@code ReplicationHub}s, created by this builder.
|
remoteNodeValidator, tcpTransportAndNetwork, udpTransport
@NotNull public ReplicationHub.Builder maxEntrySize(int maxEntrySize)
ChronicleHash
es, replicated via ReplicationHub
s, created by this builder.
Default value is 1024
.
maxEntrySize
- ReplicationHub.maxEntrySize()
of ReplicationHub
s,
created by this builderReplicationHub.maxEntrySize()
@NotNull public ReplicationHub.Builder maxNumberOfChannels(int maxNumberOfChannels)
Default value is {@code 128}.
maxNumberOfChannels
- ReplicationHub.maxNumberOfChannels()
of
ReplicationHub
s, created by this builderReplicationHub.maxNumberOfChannels()
@NotNull public ReplicationHub createWithId(byte identifier)
AbstractReplication.Builder
createWithId
in class AbstractReplication.Builder<ReplicationHub,ReplicationHub.Builder>
identifier
- the node (server) identifier of the returned replicationCopyright © 2014. All rights reserved.