Class DirectoryLifeTime


  • public abstract class DirectoryLifeTime
    extends Object
    Created by IntelliJ IDEA. User: Eugene.Petrenko Date: 15.11.2007 Time: 19:54:03
    • Constructor Detail

      • DirectoryLifeTime

        public DirectoryLifeTime()
    • Method Detail

      • estimateLifeTime

        @Nullable
        public abstract Long estimateLifeTime​(long lastRunTime,
                                              long now,
                                              long defaultExpire)
        Returns:
        time to wait before this item is removed, null for eternal
      • serialize

        @NotNull
        public abstract String serialize()
      • isDeleteable

        public abstract boolean isDeleteable()
      • estimate

        public static long estimate​(long event,
                                    long span,
                                    long now)