Removed predictor from DefaultNioDatagramChannelConfig because it's already implemented in its superclass
This commit is contained in:
parent
1a309bff34
commit
e4871f8460
@ -25,7 +25,6 @@ package org.jboss.netty.channel.socket.nio;
|
|||||||
import java.net.DatagramSocket;
|
import java.net.DatagramSocket;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import org.jboss.netty.channel.AdaptiveReceiveBufferSizePredictor;
|
|
||||||
import org.jboss.netty.channel.ReceiveBufferSizePredictor;
|
import org.jboss.netty.channel.ReceiveBufferSizePredictor;
|
||||||
import org.jboss.netty.channel.socket.DefaultDatagramChannelConfig;
|
import org.jboss.netty.channel.socket.DefaultDatagramChannelConfig;
|
||||||
import org.jboss.netty.logging.InternalLogger;
|
import org.jboss.netty.logging.InternalLogger;
|
||||||
@ -51,8 +50,6 @@ class DefaultNioDatagramChannelConfig extends DefaultDatagramChannelConfig
|
|||||||
|
|
||||||
private volatile int writeBufferHighWaterMark = 64 * 1024;
|
private volatile int writeBufferHighWaterMark = 64 * 1024;
|
||||||
private volatile int writeBufferLowWaterMark = 32 * 1024;
|
private volatile int writeBufferLowWaterMark = 32 * 1024;
|
||||||
private volatile ReceiveBufferSizePredictor predictor =
|
|
||||||
new AdaptiveReceiveBufferSizePredictor();
|
|
||||||
private volatile int writeSpinCount = 16;
|
private volatile int writeSpinCount = 16;
|
||||||
|
|
||||||
DefaultNioDatagramChannelConfig(DatagramSocket socket) {
|
DefaultNioDatagramChannelConfig(DatagramSocket socket) {
|
||||||
@ -149,18 +146,4 @@ class DefaultNioDatagramChannelConfig extends DefaultDatagramChannelConfig
|
|||||||
}
|
}
|
||||||
this.writeSpinCount = writeSpinCount;
|
this.writeSpinCount = writeSpinCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public ReceiveBufferSizePredictor getReceiveBufferSizePredictor() {
|
|
||||||
return predictor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void setReceiveBufferSizePredictor(
|
|
||||||
ReceiveBufferSizePredictor predictor) {
|
|
||||||
if (predictor == null) {
|
|
||||||
throw new NullPointerException("predictor");
|
|
||||||
}
|
|
||||||
this.predictor = predictor;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user