Class DispatchLockJpaImpl
java.lang.Object
org.opencastproject.serviceregistry.impl.jpa.DispatchLockJpaImpl
A single-row lease used to elect exactly one active job dispatcher across a cluster of candidate nodes. There is
always exactly one row, with a fixed id, representing the current lease holder and when that lease expires.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longThe fixed id of the single lock row used cluster-wide. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()getOwner()voidsetLeaseExpires(Date leaseExpires) void
-
Field Details
-
SINGLETON_ID
public static final long SINGLETON_IDThe fixed id of the single lock row used cluster-wide.- See Also:
-
-
Constructor Details
-
DispatchLockJpaImpl
public DispatchLockJpaImpl() -
DispatchLockJpaImpl
public DispatchLockJpaImpl(long id)
-
-
Method Details
-
getId
-
getOwner
-
setOwner
-
getLeaseExpires
-
setLeaseExpires
-