HCOLL-197 removed entry size from the repliaction hub

This commit is contained in:
Rob Austin
2014-12-23 09:44:59 +00:00
parent 026745d63b
commit e003068792
9 changed files with 110 additions and 200 deletions
@@ -40,22 +40,18 @@ final class UdpReplicator extends UdpChannelReplicator implements Replica.Modifi
private static final Logger LOG =
LoggerFactory.getLogger(UdpReplicator.class.getName());
public static final int UPD_BUFFER_SIZE = 64 * 1204;
@NotNull
private final UdpTransportConfig replicationConfig;
public UdpReplicator(@NotNull final Replica replica,
@NotNull final Replica.EntryExternalizable entryExternalizable,
@NotNull final UdpTransportConfig replicationConfig,
final int serializedEntrySize)
@NotNull final UdpTransportConfig replicationConfig)
throws IOException {
super(replicationConfig, serializedEntrySize, replica.identifier());
this.replicationConfig = replicationConfig;
super(replicationConfig, replica.identifier());
Replica.ModificationIterator modificationIterator = replica.acquireModificationIterator(
ChronicleMapBuilder.UDP_REPLICATION_MODIFICATION_ITERATOR_ID, this);
setReader(new UdpSocketChannelEntryReader(serializedEntrySize, entryExternalizable));
setReader(new UdpSocketChannelEntryReader(replicationConfig.udpBufferSize(), entryExternalizable));
setWriter(new UdpSocketChannelEntryWriter(replicationConfig.udpBufferSize(),
entryExternalizable,