Class SetCompletedTransactionFunction

  • All Implemented Interfaces:
    Function<org.infinispan.functional.EntryView.ReadWriteEntryView<CacheXid,​TxState>,​Byte>, org.infinispan.commands.functional.functions.InjectableComponent

    public class SetCompletedTransactionFunction
    extends TxFunction
    It marks the transaction as completed in TxState by setting its status to Status.COMMITTED or Status.ROLLED_BACK.

    It doesn't check the TxState current status since it should be only invoked when the transaction completes. And it returns Status.NO_TRANSACTION if the TxState doesn't exist.

    Since:
    9.4
    Author:
    Pedro Ruivo
    • Constructor Detail

      • SetCompletedTransactionFunction

        public SetCompletedTransactionFunction​(boolean committed)
    • Method Detail

      • apply

        public Byte apply​(org.infinispan.functional.EntryView.ReadWriteEntryView<CacheXid,​TxState> view)