java.lang.Object
org.infinispan.server.hotrod.tx.table.functions.TxFunction
All Implemented Interfaces:
Function<org.infinispan.functional.EntryView.ReadWriteEntryView<CacheXid,TxState>,Byte>, org.infinispan.commands.functional.functions.InjectableComponent
Direct Known Subclasses:
ConditionalMarkAsRollbackFunction, CreateStateFunction, PreparingDecisionFunction, SetCompletedTransactionFunction, SetDecisionFunction, SetPreparedFunction

public abstract class TxFunction extends Object implements Function<org.infinispan.functional.EntryView.ReadWriteEntryView<CacheXid,TxState>,Byte>, org.infinispan.commands.functional.functions.InjectableComponent
A base Function implementation to update the TxState stored in Cache.

It injects the TimeService to use.

Since:
9.4
Author:
Pedro Ruivo
  • Field Details

    • timeService

      protected org.infinispan.commons.time.TimeService timeService
  • Constructor Details

    • TxFunction

      public TxFunction()
  • Method Details

    • inject

      public void inject(org.infinispan.factories.ComponentRegistry registry)
      Specified by:
      inject in interface org.infinispan.commands.functional.functions.InjectableComponent