Java API for Signal/Collect.