mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-81 made publicly a single ChronicleMapBuilder, that delegates onto internal implementations
This commit is contained in:
@@ -67,17 +67,16 @@ public class Builder {
|
||||
identifier, serverPort, endpoints).create();
|
||||
}
|
||||
|
||||
public static <K, V> ChronicleMapOnHeapUpdatableBuilder<K, V> newTcpSocketShmBuilder(
|
||||
public static <K, V> ChronicleMapBuilder<K, V> newTcpSocketShmBuilder(
|
||||
Class<K> kClass, Class<V> vClass,
|
||||
final byte identifier,
|
||||
final int serverPort,
|
||||
final InetSocketAddress... endpoints) throws IOException {
|
||||
TcpTransportAndNetworkConfig tcpConfig = TcpTransportAndNetworkConfig.of(serverPort, Arrays.asList(endpoints))
|
||||
.heartBeatInterval(1L, TimeUnit.SECONDS);
|
||||
return ChronicleMapOnHeapUpdatableBuilder.of(kClass, vClass)
|
||||
.replication(identifier, tcpConfig);
|
||||
return ChronicleMapBuilder.of(kClass, vClass)
|
||||
.replication(identifier, tcpConfig);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user