mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-163 Initial checking of - ( Move the identifier configuration from TCP/UDP Replication, back to the builder.), more on this JIRA coming soon...
This commit is contained in:
@@ -25,13 +25,8 @@ public final class Replicators {
|
||||
private Replicators() {
|
||||
}
|
||||
|
||||
public static Replicator tcp(final byte identifier,
|
||||
final TcpReplicationConfig replicationConfig) {
|
||||
public static Replicator tcp(final TcpReplicationConfig replicationConfig) {
|
||||
return new Replicator() {
|
||||
@Override
|
||||
public byte identifier() {
|
||||
return identifier;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Closeable applyTo(ChronicleMapBuilder builder,
|
||||
@@ -43,13 +38,9 @@ public final class Replicators {
|
||||
};
|
||||
}
|
||||
|
||||
public static Replicator udp(final byte identifier,
|
||||
final UdpReplicationConfig replicationConfig) {
|
||||
public static Replicator udp(
|
||||
final UdpReplicationConfig replicationConfig) {
|
||||
return new Replicator() {
|
||||
@Override
|
||||
public byte identifier() {
|
||||
return identifier;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Closeable applyTo(ChronicleMapBuilder builder,
|
||||
|
||||
Reference in New Issue
Block a user