Class Timeout

java.lang.Object
jakarta.persistence.Timeout
All Implemented Interfaces:
FindOption, LockOption, RefreshOption

public class Timeout extends Object implements FindOption, RefreshOption, LockOption
Specifies a timeout for a database request. This option is always a hint, and may be ignored by the provider.
Since:
3.2
  • Method Details

    • s

      public static Timeout s(int seconds)
      Specify a timeout in seconds. (Abbreviation of seconds(int).)
    • ms

      public static Timeout ms(int milliseconds)
      Specify a timeout in milliseconds. (Abbreviation of milliseconds(int).)
    • seconds

      public static Timeout seconds(int seconds)
      Specify a timeout in seconds.
    • milliseconds

      public static Timeout milliseconds(int milliseconds)
      Specify a timeout in milliseconds.
    • milliseconds

      public int milliseconds()
      The timeout in milliseconds.