public int getValue() { /* * Get the current threshold. */ if ((port != null) && port.isReceiveThresholdEnabled()) { this.value = port.getReceiveThreshold(); } else { this.value = 0; } return this.value; }