forked from KNEMC/KLALB
修复线程不能正确关闭的问题
This commit is contained in:
@@ -5,6 +5,7 @@ import java.net.Socket;
|
||||
import java.util.*;
|
||||
import java.util.concurrent.BlockingDeque;
|
||||
import java.util.concurrent.LinkedBlockingDeque;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
import org.kne.cloud.network.mport.ServiceElement;
|
||||
|
||||
@@ -90,10 +91,17 @@ private volatile long outputcount = 1;
|
||||
return sendDeque;
|
||||
}
|
||||
private volatile int pcu=0;
|
||||
private Consumer<LocalTCPConnection> hook;
|
||||
public void setPeerCacheUsed(int cacheused) {
|
||||
pcu= cacheused;
|
||||
}
|
||||
public int getPeerCacheUsed() {
|
||||
return pcu;
|
||||
}
|
||||
public Consumer<LocalTCPConnection> getRSTHook() {
|
||||
return hook;
|
||||
}
|
||||
public void setRSTHook(Consumer<LocalTCPConnection> tc) {
|
||||
this.hook=tc;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user