src/main/java/edu/ucla/library/bucketeer/verticles/S3BucketVerticle.java
private void sendReply(final Message<JsonObject> aMessage, final int aCode, final String aDetails) {
        getVertx().sharedData().getLocalCounter(Constants.S3_REQUEST_COUNT, getCounter -> {
            if (getCounter.succeeded()) {
                getCounter.result().decrementAndGet(decrement -> {
                    if (decrement.failed()) {
                        LOGGER.error(MessageCodes.BUCKETEER_093);
                    }

                    if (aCode == 0) {
                        aMessage.reply(aDetails);
                    } else {
                        aMessage.fail(aCode, aDetails);
                    }
                });
            } else {
                LOGGER.error(MessageCodes.BUCKETEER_094);

                if (aCode == 0) {
                    aMessage.reply(aDetails);
                } else {
                    aMessage.fail(aCode, aDetails);
                }
            }
        });
    }
/**
     * Sends a message reply in the case that the S3 upload succeeded (or failed after the counter had been
     * incremented).
     *
     * @param aMessage A message requesting an S3 upload
     * @param aDetails The result of the S3 upload
     */
Sends a message reply in the case that the S3 upload succeeded (or failed after the counter had been
incremented).

@param aMessage A message requesting an S3 upload
@param aDetails The result of the S3 upload
Sends a message reply in the case that the S3 upload succeeded ( or failed after the counter had been incremented ) . @param aMessage A message requesting an S3 upload @param aDetails The result of the S3 upload
private void sendReply(final Message<JsonObject> aMessage, final int aCode, final String aDetails) {
        getVertx().sharedData().getLocalCounter(Constants.S3_REQUEST_COUNT, getCounter -> {
            if (getCounter.succeeded()) {
                getCounter.result().decrementAndGet(decrement -> {
                    if (decrement.failed()) {
                        LOGGER.error(MessageCodes.BUCKETEER_093);
                    }
                    if (aCode == 0) {
                        aMessage.reply(aDetails);
                    } else {
                        aMessage.fail(aCode, aDetails);
                    }
                });
            } else {
                LOGGER.error(MessageCodes.BUCKETEER_094);
                if (aCode == 0) {
                    aMessage.reply(aDetails);
                } else {
                    aMessage.fail(aCode, aDetails);
                }
            }
        });
    }
private void sendReply ( final Message < JsonObject > aMessage , final int aCode , final String aDetails ) { getVertx ( ) . sharedData ( ) . getLocalCounter ( Constants . S3_REQUEST_COUNT , getCounter -> { if ( getCounter . succeeded ( ) ) { getCounter . result ( ) . decrementAndGet ( decrement -> { if ( decrement . failed ( ) ) { LOGGER . error ( MessageCodes . BUCKETEER_093 ) ; } if ( aCode == 0 ) { aMessage . reply ( aDetails ) ; } else { aMessage . fail ( aCode , aDetails ) ; } } ) ; } else { LOGGER . error ( MessageCodes . BUCKETEER_094 ) ; if ( aCode == 0 ) { aMessage . reply ( aDetails ) ; } else { aMessage . fail ( aCode , aDetails ) ; } } } ) ; }
Sends a message reply in the case that the S3 upload succeeded (or failed after the counter had been
 incremented).
Sends a message reply in the case that the S3 upload succeeded ( or failed after the counter had been incremented ) .