API progress
This commit is contained in:
parent
e3907019b4
commit
76d55f52cf
|
@ -140,6 +140,12 @@ public class IncomingDataBuffer {
|
||||||
return false; // looks good!
|
return false; // looks good!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getPendingCount() {
|
||||||
|
synchronized (cbb) {
|
||||||
|
return cbb.length();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void dropPending() {
|
public void dropPending() {
|
||||||
// todo: when exactly do we need this logic?
|
// todo: when exactly do we need this logic?
|
||||||
synchronized (cbb) {
|
synchronized (cbb) {
|
||||||
|
|
Loading…
Reference in New Issue