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 long
estimate(long event, long span, long now)
abstract Long
estimateLifeTime(long lastRunTime, long now, long defaultExpire)
static DirectoryLifeTime
getCustom(long time)
static DirectoryLifeTime
getDefault()
static DirectoryLifeTime
getNeverExpire()
abstract boolean
isDeleteable()
static DirectoryLifeTime
parse(String str, DirectoryLifeTime def)
abstract String
serialize()
-
-
-
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)
-
-