Class SetPreparedFunction

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

    public class SetPreparedFunction
    extends TxFunction
    It sets the transaction as successful prepared.

    The TxState status must be Status.PREPARING. If not, it returns the current status.

    If the TxState doesn't exist, it returns Status.NO_TRANSACTION.

    Note that the Status.PREPARED doesn't mean the transaction can commit or not. The decision is made by the client TransactionManager.

    Since:
    9.4
    Author:
    Pedro Ruivo
    • Field Detail

      • EXTERNALIZER

        public static final org.infinispan.commons.marshall.AdvancedExternalizer<SetPreparedFunction> EXTERNALIZER
    • Constructor Detail

      • SetPreparedFunction

        public SetPreparedFunction()
    • Method Detail

      • apply

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