Ejemplo n.º 1
0
 public void setRcvBufSizeWarn(short type, int size) {
   synchronized (_setBufSizeWarn) {
     BufSizeWarnInfo info = getBufSizeWarn(type);
     info.rcvWarn = true;
     info.rcvSize = size;
     _setBufSizeWarn.put(type, info);
   }
 }
Ejemplo n.º 2
0
 public BufSizeWarnInfo getBufSizeWarn(short type) {
   synchronized (_setBufSizeWarn) {
     BufSizeWarnInfo info;
     if (!_setBufSizeWarn.containsKey(type)) {
       info = new BufSizeWarnInfo();
       info.sndWarn = false;
       info.sndSize = -1;
       info.rcvWarn = false;
       info.rcvSize = -1;
       _setBufSizeWarn.put(type, info);
     } else {
       info = _setBufSizeWarn.get(type);
     }
     return info;
   }
 }