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

org.redisson.api.RLexSortedSetAsync 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.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> rangeTailReversedAsync(String fromElement, boolean fromInclusive);

    RFuture> rangeHeadReversedAsync(String toElement, boolean toInclusive);

    RFuture> rangeReversedAsync(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive);

    RFuture> rangeTailReversedAsync(String fromElement, boolean fromInclusive, int offset, int count);
    
    RFuture> rangeHeadReversedAsync(String toElement, boolean toInclusive, int offset, int count);

    RFuture> rangeReversedAsync(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 - 2024 Weber Informatics LLC | Privacy Policy