org.infinispan.client.hotrod.HotRodMutinyLocks Maven / Gradle / Ivy
package org.infinispan.client.hotrod;
import org.infinispan.api.Experimental;
import org.infinispan.api.configuration.LockConfiguration;
import org.infinispan.api.mutiny.MutinyLock;
import org.infinispan.api.mutiny.MutinyLocks;
import io.smallrye.mutiny.Multi;
import io.smallrye.mutiny.Uni;
/**
* @since 14.0
**/
@Experimental
final class HotRodMutinyLocks implements MutinyLocks {
private final HotRod hotrod;
HotRodMutinyLocks(HotRod hotrod) {
this.hotrod = hotrod;
}
@Override
public Uni lock(String name) {
return Uni.createFrom().item(new HotRodMutinyLock(hotrod, name));
}
@Override
public Uni create(String name, LockConfiguration configuration) {
throw new UnsupportedOperationException();
}
@Override
public Uni remove(String name) {
throw new UnsupportedOperationException();
}
@Override
public Multi names() {
throw new UnsupportedOperationException();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy