Package org.openengsb.core.ekb.api

Examples of org.openengsb.core.ekb.api.EKBConcurrentException


        if (mode == ContextLockingMode.DEACTIVATED) {
            return;
        }
        synchronized (activeWritingContexts) {
            if (activeWritingContexts.contains(contextId)) {
                throw new EKBConcurrentException("There is already a writing process active in the context.");
            }

            activeWritingContexts.add(contextId);
        }
    }
View Full Code Here


     * EKBConcurrentException is thrown.
     */
    private void checkForContextHeadRevision(String contextId, UUID expectedHeadRevision)
        throws EKBConcurrentException {
        if (!Objects.equal(edbService.getLastRevisionNumberOfContext(contextId), expectedHeadRevision)) {
            throw new EKBConcurrentException("The current revision of the context does not match the "
                    + "expected one.");
        }
    }
View Full Code Here

TOP

Related Classes of org.openengsb.core.ekb.api.EKBConcurrentException

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.