use of com.palantir.lock.SimpleHeldLocksToken in project atlasdb by palantir.
the class LockServiceImpl method unlockSimple.
@Override
public boolean unlockSimple(SimpleHeldLocksToken token) {
Preconditions.checkNotNull(token);
LockDescriptor fakeLockDesc = StringLockDescriptor.of("unlockSimple");
SortedLockCollection<LockDescriptor> fakeLockSet = LockCollections.of(ImmutableSortedMap.of(fakeLockDesc, LockMode.READ));
return unlock(new HeldLocksToken(token.getTokenId(), LockClient.ANONYMOUS, token.getCreationDateMs(), 0L, fakeLockSet, maxAllowedLockTimeout, 0L, "UnknownThread-unlockSimple"));
}
Aggregations