mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-134 and HCOLL-145 ( release draft cut of the code so that I can test it across my network )
This commit is contained in:
@@ -136,9 +136,6 @@ abstract class AbstractChannelReplicator implements Closeable {
|
||||
throttler.add(channel);
|
||||
}
|
||||
|
||||
interface ChannelReplicatorBuilder {
|
||||
}
|
||||
|
||||
/**
|
||||
* throttles 'writes' to ensure the network is not swamped, this is achieved by periodically
|
||||
* de-registering the write selector during periods of high volume.
|
||||
@@ -211,9 +208,9 @@ abstract class AbstractChannelReplicator implements Closeable {
|
||||
if (bytesWritten > maxBytesInInterval) {
|
||||
for (SelectableChannel channel : channels) {
|
||||
final SelectionKey selectionKey = channel.keyFor(selector);
|
||||
if (selectionKey != null)
|
||||
if (selectionKey != null) {
|
||||
selectionKey.interestOps(selectionKey.interestOps() & ~OP_WRITE);
|
||||
|
||||
}
|
||||
if (LOG.isDebugEnabled())
|
||||
LOG.debug("Throttling UDP writes");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user