Package com.saasovation.common.event.sourcing

Examples of com.saasovation.common.event.sourcing.EventStoreAppendException


                this.database().write(batch);
            }

        } catch (Throwable t) {
            throw new EventStoreAppendException(
                    "Could not append to journal because: "
                            + t.getMessage(),
                    t);
        } finally {
            try {
View Full Code Here


    private void confirmNonExistingReference(String aReferenceKey) {
        // this implementation will not stand up to race conditions

        if (this.database().get(aReferenceKey.getBytes()) != null) {
            throw new EventStoreAppendException("Journal concurrency violation.");
        }
    }
View Full Code Here

                this.connection().rollback();
            } catch (Throwable t2) {
                // ignore
            }

            throw new EventStoreAppendException(
                    "Could not append to event store because: "
                            + t1.getMessage(),
                    t1);
        } finally {
            try {
View Full Code Here

TOP

Related Classes of com.saasovation.common.event.sourcing.EventStoreAppendException

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.