Class ExtendedTimerConfig

java.lang.Object
jakarta.ejb.TimerConfig
org.jboss.ejb3.timerservice.ExtendedTimerConfig

public class ExtendedTimerConfig extends jakarta.ejb.TimerConfig
WildFly specific extension of TimerConfig that allows for an external identifier to be associated with an EJB timer.

This identifier is stored in a dedicated database column to allow for high-performance indexed lookups without deserializing the timer info object.

  • Constructor Details

    • ExtendedTimerConfig

      public ExtendedTimerConfig()
    • ExtendedTimerConfig

      public ExtendedTimerConfig(Serializable info, boolean persistent)
    • ExtendedTimerConfig

      public ExtendedTimerConfig(Serializable info, boolean persistent, String externalId)
      Creates a timer configuration with an external identifier.
      Parameters:
      info - application specific information
      persistent - true if the timer should be persistent
      externalId - the external identifier for indexed lookups
  • Method Details

    • getExternalId

      public String getExternalId()
      Returns the external identifier associated with this timer configuration.
      Returns:
      the external identifier, or null if not set
    • setExternalId

      public void setExternalId(String externalId)
      Sets the external identifier associated with this timer configuration.
      Parameters:
      externalId - the external identifier