Class DirectoryLifeTime
- java.lang.Object
-
- jetbrains.buildServer.agent.impl.directories.DirectoryLifeTime
-
public abstract class DirectoryLifeTime extends Object
Created by IntelliJ IDEA. User: Eugene.Petrenko Date: 15.11.2007 Time: 19:54:03
-
-
Constructor Summary
Constructors Constructor Description DirectoryLifeTime()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static longestimate(long event, long span, long now)abstract LongestimateLifeTime(long lastRunTime, long now, long defaultExpire)static DirectoryLifeTimegetCustom(long time)static DirectoryLifeTimegetDefault()static DirectoryLifeTimegetNeverExpire()abstract booleanisDeleteable()static DirectoryLifeTimeparse(String str, DirectoryLifeTime def)abstract Stringserialize()
-
-
-
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()
-
getNeverExpire
public static DirectoryLifeTime getNeverExpire()
-
getCustom
public static DirectoryLifeTime getCustom(long time)
-
getDefault
public static DirectoryLifeTime getDefault()
-
estimate
public static long estimate(long event, long span, long now)
-
parse
@NotNull public static DirectoryLifeTime parse(@Nullable String str, @NotNull DirectoryLifeTime def)
-
-