Package com.codebullets.sagalib.timeout

Examples of com.codebullets.sagalib.timeout.Timeout


        Collection<SagaType> sagaTypes;

        if (message instanceof Timeout) {
            // timeout is special. Has only one specific saga state and
            // saga id is already known
            Timeout timeout = (Timeout) message;
            SagaType sagaType = SagaType.sagaFromTimeout(timeout.getSagaId());
            sagaTypes = new ArrayList<>(1);
            sagaTypes.add(sagaType);
        } else {
            sagaTypes = prepareSagaTypeList(message);
        }
View Full Code Here


        Collection<SagaInstanceDescription> sagaInstances = new ArrayList<>();

        if (message instanceof Timeout) {
            // timeout is special. Has only one specific saga state and
            // saga id is already known
            Timeout timeout = (Timeout) message;
            Saga saga = createSagaForTimeoutHandling(timeout);
            if (saga != null) {
                sagaInstances.add(SagaInstanceDescription.define(saga, false));
            }
        } else {
View Full Code Here

        Collection<SagaType> sagaTypes;

        if (message instanceof Timeout) {
            // timeout is special. Has only one specific saga state and
            // saga id is already known
            Timeout timeout = (Timeout) message;
            SagaType sagaType = SagaType.sagaFromTimeout(timeout.getSagaId());
            sagaTypes = new ArrayList<>(1);
            sagaTypes.add(sagaType);
        } else {
            sagaTypes = prepareSagaTypeList(message);
        }
View Full Code Here

TOP

Related Classes of com.codebullets.sagalib.timeout.Timeout

Copyright © 2018 www.massapicom. 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.