Class InMemoryStorageProvider

    • Constructor Detail

      • InMemoryStorageProvider

        public InMemoryStorageProvider()
      • InMemoryStorageProvider

        public InMemoryStorageProvider​(RateLimiter rateLimiter)
    • Method Detail

      • setJobMapper

        public void setJobMapper​(JobMapper jobMapper)
      • setUpStorageProvider

        public void setUpStorageProvider​(StorageProviderUtils.DatabaseOptions databaseOptions)
        Description copied from interface: StorageProvider
        This method allows to reinitialize the StorageProvider. It can be used if you are using Flyway or Liquibase to setup your database manually. By default, this method is automatically called on construction of the StorageProvider
        Parameters:
        databaseOptions - defines whether to set up the StorageProvider or validate whether the StorageProvider is set up correctly.
      • signalBackgroundJobServerStopped

        public void signalBackgroundJobServerStopped​(BackgroundJobServerStatus serverStatus)
      • getLongestRunningBackgroundJobServerId

        public java.util.UUID getLongestRunningBackgroundJobServerId()
      • removeTimedOutBackgroundJobServers

        public int removeTimedOutBackgroundJobServers​(java.time.Instant heartbeatOlderThan)
      • getJobById

        public Job getJobById​(java.util.UUID id)
      • getMetadata

        public java.util.List<JobRunrMetadata> getMetadata​(java.lang.String key)
      • getMetadata

        public JobRunrMetadata getMetadata​(java.lang.String key,
                                           java.lang.String owner)
      • deleteMetadata

        public void deleteMetadata​(java.lang.String key)
      • save

        public Job save​(Job job)
      • deletePermanently

        public int deletePermanently​(java.util.UUID id)
      • save

        public java.util.List<Job> save​(java.util.List<Job> jobs)
      • getJobs

        public java.util.List<Job> getJobs​(StateName state,
                                           java.time.Instant updatedBefore,
                                           PageRequest pageRequest)
      • getScheduledJobs

        public java.util.List<Job> getScheduledJobs​(java.time.Instant scheduledBefore,
                                                    PageRequest pageRequest)
      • deleteJobsPermanently

        public int deleteJobsPermanently​(StateName state,
                                         java.time.Instant updatedBefore)
      • getDistinctJobSignatures

        public java.util.Set<java.lang.String> getDistinctJobSignatures​(StateName... states)
      • recurringJobExists

        public boolean recurringJobExists​(java.lang.String recurringJobId,
                                          StateName... states)
      • countRecurringJobs

        @Deprecated
        public long countRecurringJobs()
        Deprecated.
      • recurringJobsUpdated

        public boolean recurringJobsUpdated​(java.lang.Long recurringJobsUpdatedHash)
      • deleteRecurringJob

        public int deleteRecurringJob​(java.lang.String id)
      • getJobStats

        public JobStats getJobStats()
      • publishTotalAmountOfSucceededJobs

        public void publishTotalAmountOfSucceededJobs​(int amount)