public void setRcvBufSizeWarn(short type, int size) { synchronized (_setBufSizeWarn) { BufSizeWarnInfo info = getBufSizeWarn(type); info.rcvWarn = true; info.rcvSize = size; _setBufSizeWarn.put(type, info); } }
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; } }