public Integer getValue() throws NoSuchPropertyException { StateModel model; synchronized(stateMap) { model = stateMap.get(owningProcess); } if (model != null) { return model.queueSize(); } else { return -1; } }
public Integer getValue() throws NoSuchPropertyException { StateModel model = stateMap.get(owningProcess); if (model != null) { return model.queueSize(); } else { return -1; } }
public Integer getValue() throws NoSuchPropertyException { StateModel model; synchronized(stateMap) { model = stateMap.get(owningProcess); } if (model != null) { return model.queueSize(); } else { return -1; } }