Examples of EKBConcurrentException


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

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

     * 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
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.