Class BackgroundJobServerTable

    • Constructor Detail

      • BackgroundJobServerTable

        public BackgroundJobServerTable​(java.sql.Connection connection,
                                        Dialect dialect,
                                        java.lang.String tablePrefix)
    • Method Detail

      • announce

        public void announce​(BackgroundJobServerStatus serverStatus)
                      throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • signalServerAlive

        public boolean signalServerAlive​(BackgroundJobServerStatus serverStatus)
                                  throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • removeAllWithLastHeartbeatOlderThan

        public int removeAllWithLastHeartbeatOlderThan​(java.time.Instant heartbeatOlderThan)
                                                throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getLongestRunningBackgroundJobServerId

        public java.util.UUID getLongestRunningBackgroundJobServerId()