/** * Create the *single* instance of this class that would be used by all anonymous services used * for outgoing messaging. * * @param synCfg the Synapse configuration * @param contextInformation server runtime information */ public SynapseCallbackReceiver( SynapseConfiguration synCfg, ServerContextInformation contextInformation) { // callbackStore = Collections.synchronizedMap(new HashMap<String, AxisCallback>()); // create the Timer object and a TimeoutHandler task TimeoutHandler timeoutHandler = new TimeoutHandler(callbackStore, contextInformation); Timer timeOutTimer = synCfg.getSynapseTimer(); long timeoutHandlerInterval = SynapseConfigUtils.getTimeoutHandlerInterval(); // schedule timeout handler to run every n seconds (n : specified or defaults to 15s) timeOutTimer.schedule(timeoutHandler, 0, timeoutHandlerInterval); }