Add some javadoc to ThresholdService