org.infinispan.client.hotrod.HotRodMutinyLock Maven / Gradle / Ivy
package org.infinispan.client.hotrod;
import java.util.concurrent.TimeUnit;
import org.infinispan.api.Experimental;
import org.infinispan.api.mutiny.MutinyContainer;
import org.infinispan.api.mutiny.MutinyLock;
import io.smallrye.mutiny.Uni;
/**
* @since 14.0
**/
@Experimental
final class HotRodMutinyLock implements MutinyLock {
private final HotRod hotrod;
private final String name;
HotRodMutinyLock(HotRod hotrod, String name) {
this.hotrod = hotrod;
this.name = name;
}
@Override
public String name() {
return name;
}
@Override
public MutinyContainer container() {
return hotrod.mutiny();
}
@Override
public Uni lock() {
throw new UnsupportedOperationException();
}
@Override
public Uni tryLock() {
throw new UnsupportedOperationException();
}
@Override
public Uni tryLock(long time, TimeUnit unit) {
throw new UnsupportedOperationException();
}
@Override
public Uni unlock() {
throw new UnsupportedOperationException();
}
@Override
public Uni isLocked() {
throw new UnsupportedOperationException();
}
@Override
public Uni isLockedByMe() {
throw new UnsupportedOperationException();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy