Uses of Record Class
com.loomcache.server.cp.FencingToken
Packages that use FencingToken
-
Uses of FencingToken in com.loomcache.server.cp
Methods in com.loomcache.server.cp that return FencingTokenModifier and TypeMethodDescriptionFencingTokenGenerator.generateToken(String lockName, String sessionId) Generates a new fencing token for the given lock and session.@Nullable FencingTokenLinearizableLock.getCurrentToken()Gets the current fencing token (if lock is held).LinearizableLock.lockWithToken(String sessionId) Acquires the lock and returns a FencingToken.Methods in com.loomcache.server.cp with parameters of type FencingTokenModifier and TypeMethodDescriptionbooleanFencingToken.isNewerThan(FencingToken other) Validates that this token was issued after the given token.booleanFencingTokenGenerator.isTokenStale(FencingToken token) Checks if a token is stale (older than the current global counter).booleanLinearizableLock.validateFencingToken(FencingToken token) Validates a fencing token to ensure it matches the current lock holder.booleanFencingTokenGenerator.validateToken(FencingToken token, String expectedLock, String expectedSession) Validates a fencing token against the current state.