pipelineWrite
This commit is contained in:
@@ -169,11 +169,14 @@ abstract class AsyncNioConnection extends AsyncConnection {
|
|||||||
pipelineLock.unlock();
|
pipelineLock.unlock();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
boolean empty = this.pipelineWriteQueue.isEmpty();
|
||||||
for (PipelinePacket packet : packets) {
|
for (PipelinePacket packet : packets) {
|
||||||
this.pipelineWriteQueue.offer(packet);
|
this.pipelineWriteQueue.offer(packet);
|
||||||
}
|
}
|
||||||
|
if (empty) {
|
||||||
this.ioWriteThread.execute(this::pipelineDoWrite);
|
this.ioWriteThread.execute(this::pipelineDoWrite);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void pipelineDoWrite() {
|
private void pipelineDoWrite() {
|
||||||
PipelinePacket packet;
|
PipelinePacket packet;
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import java.io.Serializable;
|
|||||||
import java.net.InetSocketAddress;
|
import java.net.InetSocketAddress;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import org.redkale.convert.ConvertColumn;
|
import org.redkale.convert.ConvertColumn;
|
||||||
|
import org.redkale.convert.ConvertImpl;
|
||||||
import org.redkale.convert.json.JsonConvert;
|
import org.redkale.convert.json.JsonConvert;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -16,6 +17,7 @@ import org.redkale.convert.json.JsonConvert;
|
|||||||
*
|
*
|
||||||
* @author zhangjx
|
* @author zhangjx
|
||||||
*/
|
*/
|
||||||
|
@ConvertImpl(value = WebSocketUserAddress.SimpleWebSocketUserAddress.class)
|
||||||
public interface WebSocketUserAddress {
|
public interface WebSocketUserAddress {
|
||||||
|
|
||||||
Serializable userid();
|
Serializable userid();
|
||||||
|
|||||||
Reference in New Issue
Block a user