
org.redisson.api.RLexSortedSetAsync Maven / Gradle / Ivy
/**
* Copyright 2016 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.api;
import java.util.Collection;
/**
* Sorted set contained values of String type
*
* @author Nikita Koksharov
*
*/
public interface RLexSortedSetAsync extends RCollectionAsync {
RFuture pollLastAsync();
RFuture pollFirstAsync();
RFuture firstAsync();
RFuture lastAsync();
/**
* Read all values at once.
*
* @return collection of values
*/
RFuture> readAllAsync();
RFuture removeRangeAsync(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive);
RFuture removeRangeTailAsync(String fromElement, boolean fromInclusive);
RFuture removeRangeHeadAsync(String toElement, boolean toInclusive);
RFuture countTailAsync(String fromElement, boolean fromInclusive);
RFuture countHeadAsync(String toElement, boolean toInclusive);
RFuture> rangeTailAsync(String fromElement, boolean fromInclusive);
RFuture> rangeHeadAsync(String toElement, boolean toInclusive);
RFuture> rangeAsync(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive);
RFuture> rangeTailAsync(String fromElement, boolean fromInclusive, int offset, int count);
RFuture> rangeHeadAsync(String toElement, boolean toInclusive, int offset, int count);
RFuture> rangeAsync(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive, int offset, int count);
RFuture countAsync(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive);
RFuture rankAsync(String o);
RFuture> rangeAsync(int startIndex, int endIndex);
/**
* Returns rank of value, with the scores ordered from high to low.
*
* @param o - value
* @return rank or null
if value does not exist
*/
RFuture revRankAsync(String o);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy