Examples of TimerResponseChannel


Examples of org.apache.ode.bpel.rtrep.v1.channels.TimerResponseChannel

        public void run() {
            Calendar now = Calendar.getInstance();

            if (now.before(_alarm)) {
                TimerResponseChannel trc = newChannel(TimerResponseChannel.class);
                getBpelRuntime().registerTimer(trc,_alarm.getTime());
                object(false,new TimerResponseChannelListener(trc){
                    private static final long serialVersionUID = 1110683632756756017L;

                    public void onTimeout() {
View Full Code Here

Examples of org.apache.ode.bpel.rtrep.v1.channels.TimerResponseChannel

       
                    if (__log.isDebugEnabled())
                        __log.debug("ActivityRecovery: Retrying activity " + _self.aId);
                    Date future = new Date(new Date().getTime() +
                        (failureHandling == null ? 0L : failureHandling.retryDelay * 1000));
                    final TimerResponseChannel timerChannel = newChannel(TimerResponseChannel.class);
                    getBpelRuntime().registerTimer(timerChannel, future);
                    object(false, new TimerResponseChannelListener(timerChannel) {
                        private static final long serialVersionUID = -261911108068231376L;
                            public void onTimeout() {
                                ++_failure.retryCount;
View Full Code Here

Examples of org.apache.ode.bpel.rtrep.v1.channels.TimerResponseChannel

            return;
        }


        if(dueDate.getTime() > System.currentTimeMillis()){
            final TimerResponseChannel timerChannel = newChannel(TimerResponseChannel.class);
            getBpelRuntime().registerTimer(timerChannel, dueDate);

            object(false, new TimerResponseChannelListener(timerChannel){
                private static final long serialVersionUID = 3120518305645437327L;
View Full Code Here

Examples of org.apache.ode.bpel.rtrep.v2.channels.TimerResponseChannel

          // this is not the first time we're trying this scope
          if (getBpelRuntime().isRetryable()) {
            // we need to retry after injecting a certain amount of delay
                    Date future = new Date(new Date().getTime() +
                            getBpelRuntime().getRetryDelay() * 1000);
                    final TimerResponseChannel timerChannel = newChannel(TimerResponseChannel.class);
                    getBpelRuntime().registerTimer(timerChannel, future);
                    object(false, new TimerResponseChannelListener(timerChannel) {
                        private static final long serialVersionUID = -261911108068231376L;
                            public void onTimeout() {
                                getBpelRuntime().setRetriedOnce();
View Full Code Here

Examples of org.apache.ode.bpel.rtrep.v2.channels.TimerResponseChannel

        }
       
        if (__log.isDebugEnabled())
            __log.debug("ActivityRecovery: Retrying invoke activity " + _self.aId);
        Date future = new Date(new Date().getTime() + failureHandling.retryDelay * 1000);
        final TimerResponseChannel timerChannel = newChannel(TimerResponseChannel.class);
        getBpelRuntime().registerTimer(timerChannel, future);

        object(false, new TimerResponseChannelListener(timerChannel) {
          private static final long serialVersionUID = -261911108068231376L;
            public void onTimeout() {
View Full Code Here

Examples of org.apache.ode.bpel.rtrep.v2.channels.TimerResponseChannel

       
                    if (__log.isDebugEnabled())
                        __log.debug("ActivityRecovery: Retrying activity " + _self.aId);
                    Date future = new Date(new Date().getTime() +
                        (failureHandling == null ? 0L : failureHandling.retryDelay * 1000));
                    final TimerResponseChannel timerChannel = newChannel(TimerResponseChannel.class);
                    getBpelRuntime().registerTimer(timerChannel, future);
                    object(false, new TimerResponseChannelListener(timerChannel) {
                        private static final long serialVersionUID = -261911108068231376L;
                            public void onTimeout() {
                                ++_failure.retryCount;
View Full Code Here

Examples of org.apache.ode.bpel.rtrep.v2.channels.TimerResponseChannel

            return;
        }


        if(dueDate.getTime() > System.currentTimeMillis()){
            final TimerResponseChannel timerChannel = newChannel(TimerResponseChannel.class);
            getBpelRuntime().registerTimer(timerChannel, dueDate);

            object(false, new TimerResponseChannelListener(timerChannel){
                private static final long serialVersionUID = 3120518305645437327L;
View Full Code Here

Examples of org.apache.ode.bpel.runtime.channels.TimerResponseChannel

        _vpu.inject(new JacobRunnable() {
            private static final long serialVersionUID = -7767141033611036745L;

            public void run() {
                TimerResponseChannel responseChannel = importChannel(timerResponseChannel, TimerResponseChannel.class);
                responseChannel.onTimeout();
            }
        });
        execute();
    }
View Full Code Here

Examples of org.apache.ode.bpel.runtime.channels.TimerResponseChannel

        _vpu.inject(new JacobRunnable() {
            private static final long serialVersionUID = 6157913683737696396L;

            public void run() {
                TimerResponseChannel responseChannel = importChannel(id, TimerResponseChannel.class);
                responseChannel.onCancel();
            }
        });
    }
View Full Code Here

Examples of org.apache.ode.bpel.runtime.channels.TimerResponseChannel

        public void run() {
            Calendar now = Calendar.getInstance();

            if (now.before(_alarm)) {
                TimerResponseChannel trc = newChannel(TimerResponseChannel.class);
                getBpelRuntimeContext().registerTimer(trc,_alarm.getTime());
                object(false,new TimerResponseChannelListener(trc){
                    private static final long serialVersionUID = 1110683632756756017L;

                    public void onTimeout() {
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.