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

io.lettuce.core.output.ComplexDataParser Maven / Gradle / Ivy

Go to download

Advanced and thread-safe Java Redis client for synchronous, asynchronous, and reactive usage. Supports Cluster, Sentinel, Pipelining, Auto-Reconnect, Codecs and much more.

The newest version!
/*
 * Copyright 2024, Redis Ltd. and Contributors
 * All rights reserved.
 *
 * Licensed under the MIT License.
 */

package io.lettuce.core.output;

/**
 * Any usage of the {@link ComplexOutput} comes hand in hand with a respective {@link ComplexDataParser} that is able to parse
 * the data extracted from the server to a meaningful Java object.
 * 
 * @param  the type of the parsed object
 * @author Tihomir Mateev
 * @see ComplexData
 * @see ComplexOutput
 * @since 6.5
 */
public interface ComplexDataParser {

    /**
     * Parse the data extracted from the server to a specific domain object.
     *
     * @param data the data to parse
     * @return the parsed object
     * @since 6.5
     */
    T parse(ComplexData data);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy