
io.lettuce.core.output.TrackingInfoParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lettuce-core Show documentation
Show all versions of lettuce-core Show documentation
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;
import io.lettuce.core.TrackingInfo;
import io.lettuce.core.protocol.CommandKeyword;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* Parser for Redis CLIENT TRACKINGINFO command output.
*
* @author Tihomir Mateev
* @since 6.5
*/
public class TrackingInfoParser implements ComplexDataParser {
public static final TrackingInfoParser INSTANCE = new TrackingInfoParser();
/**
* Utility constructor.
*/
private TrackingInfoParser() {
}
/**
* Parse the output of the Redis CLIENT TRACKINGINFO command and convert it to a {@link TrackingInfo}
*
* @param dynamicData output of CLIENT TRACKINGINFO command
* @return an {@link TrackingInfo} instance
*/
public TrackingInfo parse(ComplexData dynamicData) {
Map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy