Tabnine Logo
Converters.toClusterNode
Code IndexAdd Tabnine to your IDE (free)

How to use
toClusterNode
method
in
org.springframework.data.redis.connection.convert.Converters

Best Java code snippets using org.springframework.data.redis.connection.convert.Converters.toClusterNode (Showing top 3 results out of 315)

origin: spring-projects/spring-data-redis

/**
 * Converts lines from the result of {@code CLUSTER NODES} into {@link RedisClusterNode}s.
 *
 * @param lines
 * @return
 * @since 1.7
 */
public static Set<RedisClusterNode> toSetOfRedisClusterNodes(Collection<String> lines) {
  if (CollectionUtils.isEmpty(lines)) {
    return Collections.emptySet();
  }
  Set<RedisClusterNode> nodes = new LinkedHashSet<>(lines.size());
  for (String line : lines) {
    nodes.add(toClusterNode(line));
  }
  return nodes;
}
origin: org.springframework.data/spring-data-redis

/**
 * Converts lines from the result of {@code CLUSTER NODES} into {@link RedisClusterNode}s.
 *
 * @param lines
 * @return
 * @since 1.7
 */
public static Set<RedisClusterNode> toSetOfRedisClusterNodes(Collection<String> lines) {
  if (CollectionUtils.isEmpty(lines)) {
    return Collections.emptySet();
  }
  Set<RedisClusterNode> nodes = new LinkedHashSet<>(lines.size());
  for (String line : lines) {
    nodes.add(toClusterNode(line));
  }
  return nodes;
}
origin: apache/servicemix-bundles

/**
 * Converts lines from the result of {@code CLUSTER NODES} into {@link RedisClusterNode}s.
 *
 * @param lines
 * @return
 * @since 1.7
 */
public static Set<RedisClusterNode> toSetOfRedisClusterNodes(Collection<String> lines) {
  if (CollectionUtils.isEmpty(lines)) {
    return Collections.emptySet();
  }
  Set<RedisClusterNode> nodes = new LinkedHashSet<>(lines.size());
  for (String line : lines) {
    nodes.add(toClusterNode(line));
  }
  return nodes;
}
org.springframework.data.redis.connection.convertConverterstoClusterNode

Javadoc

Converts the result of a single line of CLUSTER NODES into a RedisClusterNode.

Popular methods of Converters

  • toProperties
  • deserializingGeoResultsConverter
    Converter capable of deserializing GeoResults.
  • listToPropertiesConverter
    Returns a converter to convert array outputs with key-value sequences (such as produced by CONFIG GE
  • mapToPropertiesConverter
    Returns a converter to convert from Map to Properties.
  • millisecondsToTimeUnit
    Creates a new Converter to convert from milliseconds to the given TimeUnit.
  • secondsToDuration
    Convert the given nullable seconds to a Duration or null.
  • secondsToTimeUnit
    Creates a new Converter to convert from seconds to the given TimeUnit.
  • stringToBoolean
  • stringToBooleanConverter
  • toSetOfRedisClusterNodes
    Converts lines from the result of CLUSTER NODES into RedisClusterNodes.
  • toTimeMillis
    Returns the timestamp constructed from the given seconds and microseconds.
  • toTimeMillis

Popular in Java

  • Making http post requests using okhttp
  • getSupportFragmentManager (FragmentActivity)
  • getExternalFilesDir (Context)
  • getContentResolver (Context)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now