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