Examples of TimerListener


Examples of org.apache.camel.TimerListener

     * @throws Exception is thrown if error registering the object for management
     */
    protected void manageObject(Object me) throws Exception {
        getManagementStrategy().manageObject(me);
        if (me instanceof TimerListener) {
            TimerListener timer = (TimerListener) me;
            timerListenerManager.addTimerListener(timer);
        }
    }
View Full Code Here

Examples of org.apache.camel.TimerListener

     * @param me the managed object
     * @throws Exception is thrown if error unregistering the managed object
     */
    protected void unmanageObject(Object me) throws Exception {
        if (me instanceof TimerListener) {
            TimerListener timer = (TimerListener) me;
            timerListenerManager.removeTimerListener(timer);
        }
        getManagementStrategy().unmanageObject(me);
    }
View Full Code Here

Examples of org.apache.camel.TimerListener

     * @throws Exception is thrown if error registering the object for management
     */
    protected void manageObject(Object me) throws Exception {
        getManagementStrategy().manageObject(me);
        if (timerListenerManager != null && me instanceof TimerListener) {
            TimerListener timer = (TimerListener) me;
            timerListenerManager.addTimerListener(timer);
        }
    }
View Full Code Here

Examples of org.apache.camel.TimerListener

     * @param me the managed object
     * @throws Exception is thrown if error unregistering the managed object
     */
    protected void unmanageObject(Object me) throws Exception {
        if (timerListenerManager != null && me instanceof TimerListener) {
            TimerListener timer = (TimerListener) me;
            timerListenerManager.removeTimerListener(timer);
        }
        getManagementStrategy().unmanageObject(me);
    }
View Full Code Here

Examples of org.apache.camel.TimerListener

     * @throws Exception is thrown if error registering the object for management
     */
    protected void manageObject(Object me) throws Exception {
        getManagementStrategy().manageObject(me);
        if (timerListenerManager != null && me instanceof TimerListener) {
            TimerListener timer = (TimerListener) me;
            timerListenerManager.addTimerListener(timer);
        }
    }
View Full Code Here

Examples of org.apache.camel.TimerListener

     * @param me the managed object
     * @throws Exception is thrown if error unregistering the managed object
     */
    protected void unmanageObject(Object me) throws Exception {
        if (timerListenerManager != null && me instanceof TimerListener) {
            TimerListener timer = (TimerListener) me;
            timerListenerManager.removeTimerListener(timer);
        }
        getManagementStrategy().unmanageObject(me);
    }
View Full Code Here

Examples of org.apache.servicemix.timers.TimerListener

                    store.store(correlationId, aggregation);
                    if (timeout != null) {
                        if (LOG.isDebugEnabled()) {
                            LOG.debug("Scheduling timeout at " + timeout + " for aggregate " + correlationId);
                        }
                        getTimerManager().schedule(new TimerListener() {
                            public void timerExpired(Timer timer) {
                                AbstractAggregator.this.onTimeout(correlationId);
                            }
                        }, timeout);
                    }
View Full Code Here

Examples of org.apache.servicemix.timers.TimerListener

                            store.store(correlationId, aggregation);
                            if (timeout != null) {
                                if (log.isDebugEnabled()) {
                                    log.debug("Scheduling timeout at " + timeout + " for aggregate " + correlationId);
                                }
                                getTimerManager().schedule(new TimerListener() {
                                    public void timerExpired(Timer timer) {
                                        AbstractAggregator.this.onTimeout(correlationId);
                                    }
                                }, timeout);
                            }
View Full Code Here

Examples of org.apache.servicemix.timers.TimerListener

                    store.store(correlationId, aggregation);
                    if (timeout != null) {
                        if (LOG.isDebugEnabled()) {
                            LOG.debug("Scheduling timeout at " + timeout + " for aggregate " + correlationId);
                        }
                        Timer t = getTimerManager().schedule(new TimerListener() {
                            public void timerExpired(Timer timer) {
                                AbstractAggregator.this.onTimeout(processCorrelationId, correlationId, timer);
                            }
                        }, timeout);
                        timers.put(correlationId, t);
View Full Code Here

Examples of org.apache.servicemix.timers.TimerListener

                    store.store(correlationId, aggregation);
                    if (timeout != null) {
                        if (LOG.isDebugEnabled()) {
                            LOG.debug("Scheduling timeout at " + timeout + " for aggregate " + correlationId);
                        }
                        Timer t = getTimerManager().schedule(new TimerListener() {
                            public void timerExpired(Timer timer) {
                                AbstractAggregator.this.onTimeout(correlationId, timer);
                            }
                        }, timeout);
                        timers.put(correlationId, t);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.