public int size() { return _transactionalState.getOutcome() != null ? 2 : 1; }
public int size() { return _transactionalState.getOutcome() != null ? 2 : 1; }
public int size() { return _transactionalState.getOutcome() != null ? 2 : 1; }
public int size() { return _transactionalState.getOutcome() != null ? 2 : 1; }
public Object get(final int index) { switch(index) { case 0: return _transactionalState.getTxnId(); case 1: return _transactionalState.getOutcome(); } throw new IllegalStateException("Unknown index " + index); }
public Object get(final int index) { switch(index) { case 0: return _transactionalState.getTxnId(); case 1: return _transactionalState.getOutcome(); } throw new IllegalStateException("Unknown index " + index); }
public Object get(final int index) { switch(index) { case 0: return _transactionalState.getTxnId(); case 1: return _transactionalState.getOutcome(); } throw new IllegalStateException("Unknown index " + index); }
public Object get(final int index) { switch(index) { case 0: return _transactionalState.getTxnId(); case 1: return _transactionalState.getOutcome(); } throw new IllegalStateException("Unknown index " + index); }
if (state instanceof TransactionalState) { LOG.trace("State of delivery is Transactional, retrieving outcome: {}", state); outcome = ((TransactionalState) state).getOutcome(); } else if (state instanceof Outcome) { outcome = (Outcome) state;
case Transactional: LOG.trace("State of delivery is Transactional, retrieving outcome: {}", state); applyDeliveryStateUpdate(send, delivery, (DeliveryState) ((TransactionalState) state).getOutcome()); break; case Accepted:
case Transactional: LOG.trace("State of delivery is Transactional, retrieving outcome: {}", state); applyDeliveryStateUpdate(send, delivery, (DeliveryState) ((TransactionalState) state).getOutcome()); break; case Accepted:
ProtonTransactionImpl tx = (ProtonTransactionImpl) this.sessionSPI.getTransaction(txState.getTxnId(), false); if (txState.getOutcome() != null) { settleImmediate = false; Outcome outcome = txState.getOutcome(); if (outcome instanceof Accepted) { if (!delivery.remotelySettled()) {
remoteOutcome = (Outcome)remoteState; } else if (remoteState instanceof TransactionalState) { remoteOutcome = ((TransactionalState)remoteState).getOutcome(); matchingUpdateWorkItemDeliveryState = (DeliveryState)((TransactionalState) matchingUpdateWorkItemDeliveryState).getOutcome();
if (txState.getOutcome() != null) { Outcome outcome = txState.getOutcome(); if (outcome instanceof Accepted) { if (!delivery.remotelySettled()) {
ProtonTransactionImpl tx = (ProtonTransactionImpl) this.sessionSPI.getTransaction(txState.getTxnId(), false); if (txState.getOutcome() != null) { settleImmediate = false; Outcome outcome = txState.getOutcome(); if (outcome instanceof Accepted) { if (!delivery.remotelySettled()) {
TransactionalState txState = (TransactionalState) state; LOG.trace("onDelivery: TX delivery state = {}", state); if (txState.getOutcome() != null) { Outcome outcome = txState.getOutcome(); if (outcome instanceof Accepted) { TransactionId txId = new LocalTransactionId(session.getConnection().getConnectionId(), toLong(txState.getTxnId()));
TransactionalState txState = (TransactionalState) state; LOG.trace("onDelivery: TX delivery state = {}", state); if (txState.getOutcome() != null) { Outcome outcome = txState.getOutcome(); if (outcome instanceof Accepted) { TransactionId txId = new LocalTransactionId(session.getConnection().getConnectionId(), toLong(txState.getTxnId()));
Outcome transactionalOutcome = ((TransactionalState) outcome).getOutcome(); if (transactionalOutcome instanceof DeliveryState) { outcome = (DeliveryState) transactionalOutcome;
} else { TransactionalState txState = (TransactionalState) delivery.getRemoteState(); if (!(txState.getOutcome() instanceof Accepted)) { markAsInvalid("Transaction state lacks any outcome"); } else if (txState.getTxnId() == null) { } else { TransactionalState txState = (TransactionalState) delivery.getLocalState(); if (!(txState.getOutcome() instanceof Accepted)) { markAsInvalid("Transaction state lacks any outcome"); } else if (txState.getTxnId() == null) {