Class InMemoryConversationLock

java.lang.Object
at.aimon.session.web.spi.inmemory.InMemoryConversationLock
All Implemented Interfaces:
ConversationLock

public final class InMemoryConversationLock extends Object implements ConversationLock
Single-process ConversationLock backed by a ConcurrentMap.

Suitable for SINGLE_NODE deployments and unit/integration tests. Lease expiry is checked lazily at every tryAcquire / extend entry — no background scheduler. Fencing tokens are issued from a single monotonic counter so any stale handle held by a former holder is trivially detectable.