public class AmqpTransactionContext.DischargeCompletion extends Object
| Constructor and Description |
|---|
DischargeCompletion(AsyncResult request,
JmsTransactionInfo nextTx,
boolean commit) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.qpid.jms.provider.amqp.AmqpTransactionContext.DeclareCompletion |
getDeclareCompletion() |
boolean |
isCommit() |
boolean |
isPipelined() |
void |
onDeclareFailure(ProviderException failure) |
void |
onDeclareSuccess() |
void |
onDischargeFailure(ProviderException failure) |
void |
onDischargeSuccess() |
void |
onFailure(ProviderException result)
If the operation fails this method is invoked with the Exception
that caused the failure.
|
void |
onSuccess()
If the operation succeeds the resulting value produced is set to null and
the waiting parties are signaled.
|
public DischargeCompletion(AsyncResult request, JmsTransactionInfo nextTx, boolean commit)
public org.apache.qpid.jms.provider.amqp.AmqpTransactionContext.DeclareCompletion getDeclareCompletion()
public boolean isCommit()
public boolean isPipelined()
public void onFailure(ProviderException result)
AsyncResultresult - The error that resulted in this asynchronous operation failing.public void onSuccess()
AsyncResultpublic void onDeclareSuccess()
public void onDischargeSuccess()
public void onDeclareFailure(ProviderException failure)
public void onDischargeFailure(ProviderException failure)
Copyright © 2013–2019 The Apache Software Foundation. All rights reserved.