Search in sources :

Example 1 with CloseTransactionReply

use of org.opendaylight.controller.cluster.datastore.messages.CloseTransactionReply in project controller by opendaylight.

the class ShardTransaction method closeTransaction.

private void closeTransaction(final boolean sendReply) {
    getDOMStoreTransaction().abortFromTransactionActor();
    shardActor.tell(new PersistAbortTransactionPayload(transactionId), ActorRef.noSender());
    if (sendReply && returnCloseTransactionReply()) {
        getSender().tell(new CloseTransactionReply(), getSelf());
    }
    getSelf().tell(PoisonPill.getInstance(), getSelf());
}
Also used : CloseTransactionReply(org.opendaylight.controller.cluster.datastore.messages.CloseTransactionReply) PersistAbortTransactionPayload(org.opendaylight.controller.cluster.datastore.messages.PersistAbortTransactionPayload)

Aggregations

CloseTransactionReply (org.opendaylight.controller.cluster.datastore.messages.CloseTransactionReply)1 PersistAbortTransactionPayload (org.opendaylight.controller.cluster.datastore.messages.PersistAbortTransactionPayload)1