@Target(value={METHOD,ANNOTATION_TYPE}) @Retention(value=RUNTIME) public @interface SchedulerLock
Modifier and Type | Optional Element and Description |
---|---|
long |
lockAtLeastFor
The lock will be held at least for X millis.
|
String |
lockAtLeastForString
Lock at least for as string.
|
long |
lockAtMostFor
How long (in ms) the lock should be kept in case the machine which obtained the lock died before releasing it.
|
String |
lockAtMostForString
Lock at most for as string.
|
String |
name
Lock name.
|
public abstract String name
public abstract long lockAtMostFor
public abstract String lockAtMostForString
Duration.parse(CharSequence)
public abstract long lockAtLeastFor
public abstract String lockAtLeastForString
Duration.parse(CharSequence)
Copyright © 2019. All rights reserved.