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 Summary
ConstructorsConstructorDescriptionExtendedTimerConfig(Serializable info, boolean persistent) ExtendedTimerConfig(Serializable info, boolean persistent, String externalId) Creates a timer configuration with an external identifier. -
Method Summary
Modifier and TypeMethodDescriptionReturns the external identifier associated with this timer configuration.voidsetExternalId(String externalId) Sets the external identifier associated with this timer configuration.Methods inherited from class jakarta.ejb.TimerConfig
getInfo, isPersistent, setInfo, setPersistent, toString
-
Constructor Details
-
ExtendedTimerConfig
public ExtendedTimerConfig() -
ExtendedTimerConfig
-
ExtendedTimerConfig
Creates a timer configuration with an external identifier.- Parameters:
info- application specific informationpersistent- true if the timer should be persistentexternalId- the external identifier for indexed lookups
-
-
Method Details
-
getExternalId
Returns the external identifier associated with this timer configuration.- Returns:
- the external identifier, or null if not set
-
setExternalId
Sets the external identifier associated with this timer configuration.- Parameters:
externalId- the external identifier
-