All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.redisson.command.CommandReactiveExecutor Maven / Gradle / Ivy

There is a newer version: 3.34.1
Show newest version
/**
 * Copyright 2018 Nikita Koksharov
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.redisson.command;

import java.util.Collection;
import java.util.List;

import org.reactivestreams.Publisher;
import org.redisson.SlotCallback;
import org.redisson.api.RFuture;
import org.redisson.client.RedisClient;
import org.redisson.client.codec.Codec;
import org.redisson.client.protocol.RedisCommand;
import org.redisson.connection.MasterSlaveEntry;

import reactor.fn.Supplier;

/**
 *
 * @author Nikita Koksharov
 *
 */
public interface CommandReactiveExecutor extends CommandAsyncExecutor {

     Publisher reactive(Supplier> supplier);

     Publisher evalWriteAllReactive(RedisCommand command, SlotCallback callback, String script, List keys, Object ... params);

     Publisher> readAllReactive(RedisCommand command, Object ... params);

     Publisher readRandomReactive(RedisCommand command, Object ... params);

     Publisher writeReactive(MasterSlaveEntry entry, Codec codec, RedisCommand command, Object ... params);

     Publisher writeAllReactive(RedisCommand command, Object ... params);

     Publisher writeAllReactive(RedisCommand command, SlotCallback callback, Object ... params);

     Publisher readReactive(RedisClient client, String name, Codec codec, RedisCommand command, Object ... params);

     Publisher evalWriteReactive(String key, Codec codec, RedisCommand evalCommandType, String script, List keys, Object... params);

     Publisher evalReadReactive(String key, Codec codec, RedisCommand evalCommandType, String script, List keys, Object ... params);

     Publisher writeReactive(String key, RedisCommand command, Object ... params);

     Publisher writeReactive(String key, Codec codec, RedisCommand command, Object ... params);

     Publisher readReactive(String key, RedisCommand command, Object ... params);

     Publisher readReactive(String key, Codec codec, RedisCommand command, Object ... params);

}