@Override public T getMessage() { return processingContext.getMessage(); }
@Override public T getMessage() { return processingContext.getMessage(); }
@Override public T getMessage() { return processingContext.getMessage(); }
/** * Checks if the given {@code message} is the first of the batch being processed in this unit of work. * * @param message the message to check * @return {@code true} if the message is the first of this batch, {@code false} otherwise */ public boolean isFirstMessage(Message<?> message) { return processingContexts.get(0).getMessage().equals(message); }
/** * Checks if the given {@code message} is the last of the batch being processed in this unit of work. * * @param message the message to check for * @return {@code true} if the message is the last of this batch, {@code false} otherwise */ public boolean isLastMessage(Message<?> message) { return processingContexts.get(processingContexts.size() - 1).getMessage().equals(message); }
@Override public T getMessage() { return processingContext.getMessage(); }
@Override public T getMessage() { return processingContext.getMessage(); }
@Override public T getMessage() { return processingContext.getMessage(); }
@Override public T getMessage() { return processingContext.getMessage(); }
@Override public T getMessage() { return processingContext.getMessage(); }
@Override public T getMessage() { return processingContext.getMessage(); }
/** * Checks if the given {@code message} is the first of the batch being processed in this unit of work. * * @param message the message to check * @return {@code true} if the message is the first of this batch, {@code false} otherwise */ public boolean isFirstMessage(Message<?> message) { return processingContexts.get(0).getMessage().equals(message); }
/** * Checks if the given {@code message} is the first of the batch being processed in this unit of work. * * @param message the message to check * @return {@code true} if the message is the first of this batch, {@code false} otherwise */ public boolean isFirstMessage(Message<?> message) { return processingContexts.get(0).getMessage().equals(message); }
/** * Checks if the given {@code message} is the last of the batch being processed in this unit of work. * * @param message the message to check for * @return {@code true} if the message is the last of this batch, {@code false} otherwise */ public boolean isLastMessage(Message<?> message) { return processingContexts.get(processingContexts.size() - 1).getMessage().equals(message); }
/** * Checks if the given {@code message} is the last of the batch being processed in this unit of work. * * @param message the message to check for * @return {@code true} if the message is the last of this batch, {@code false} otherwise */ public boolean isLastMessage(Message<?> message) { return processingContexts.get(processingContexts.size() - 1).getMessage().equals(message); }