/** * Checks if the message being processed now is the first of the batch being processed in this unit of work. * * @return {@code true} if the message is the first of this batch, {@code false} otherwise */ public boolean isFirstMessage() { return isFirstMessage(getMessage()); }
if (!(unitOfWork instanceof BatchingUnitOfWork) || ((BatchingUnitOfWork) unitOfWork).isFirstMessage()) { tokenStore.extendClaim(getName(), unitOfWork.getResource(segmentIdResourceKey));
/** * Checks if the message being processed now is the first of the batch being processed in this unit of work. * * @return {@code true} if the message is the first of this batch, {@code false} otherwise */ public boolean isFirstMessage() { return isFirstMessage(getMessage()); }
/** * Checks if the message being processed now is the first of the batch being processed in this unit of work. * * @return {@code true} if the message is the first of this batch, {@code false} otherwise */ public boolean isFirstMessage() { return isFirstMessage(getMessage()); }
if (!(unitOfWork instanceof BatchingUnitOfWork) || ((BatchingUnitOfWork) unitOfWork).isFirstMessage()) { tokenStore.extendClaim(getName(), unitOfWork.getResource(segmentIdResourceKey));
if (!(unitOfWork instanceof BatchingUnitOfWork) || ((BatchingUnitOfWork) unitOfWork).isFirstMessage()) { tokenStore.extendClaim(getName(), unitOfWork.getResource(segmentIdResourceKey));