Class ExpiringFetcherStore

    • Field Detail

      • EXPIRE_JOB_INITIAL_DELAY

        public static final long EXPIRE_JOB_INITIAL_DELAY
        See Also:
        Constant Field Values
    • Constructor Detail

      • ExpiringFetcherStore

        public ExpiringFetcherStore​(int expireAfterSeconds,
                                    int checkForExpiredFetchersDelaySeconds)
    • Method Detail

      • deleteFetcher

        public boolean deleteFetcher​(String fetcherName)
      • getFetcherAndLogAccess

        public <T extends AbstractFetcher> T getFetcherAndLogAccess​(String fetcherName)
        This method will get the fetcher, but will also log the access the fetcher as having been accessed. This prevents the scheduled job from removing the stale fetcher.