Package com.gigaspaces.internal.lease
Class LeaseUtils
java.lang.Object
com.gigaspaces.internal.lease.LeaseUtils
- Since:
- 9.0.0
- Author:
- Niv Ingberg
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longgetTimeToLive(long expirationTime, boolean useDummyIfRelevant) static longsafeAdd(long x, long y) static longtoExpiration(long duration) static Map<SpaceLease,Throwable> updateBatch(IDirectSpaceProxy spaceProxy, LeaseUpdateBatch batch) static voidupdateBatchAsync(IDirectSpaceProxy spaceProxy, LeaseUpdateBatch batch, AsyncFutureListener<Map<SpaceLease, Throwable>> listener)
-
Field Details
-
DISCARD_LEASE
public static final long DISCARD_LEASE- See Also:
-
-
Constructor Details
-
LeaseUtils
public LeaseUtils()
-
-
Method Details
-
toExpiration
public static long toExpiration(long duration) -
safeAdd
public static long safeAdd(long x, long y) -
getTimeToLive
public static long getTimeToLive(long expirationTime, boolean useDummyIfRelevant) -
updateBatch
public static Map<SpaceLease,Throwable> updateBatch(IDirectSpaceProxy spaceProxy, LeaseUpdateBatch batch) -
updateBatchAsync
public static void updateBatchAsync(IDirectSpaceProxy spaceProxy, LeaseUpdateBatch batch, AsyncFutureListener<Map<SpaceLease, Throwable>> listener)
-