//
// enforce max "TransferAttemptsCount" policy
//
if (transferItem.getMessage().getTransferAttemptsCount()+1 > dqconfig.getMaxTransferAttemptsCount()) {
handler.onThrowable(new MaxTransferAttemptsCountException("Max transfer attempts count [" + transferItem.getMessage().getTransferAttemptsCount() + "] exceeded on this processor for item"));
return;
}
// always increment the transfer attempts count
short transferAttemptsCount = transferItem.getMessage().incrementAndGetTransferAttemptsCount();