io.lettuce.core.ScoredValue Java Examples

The following examples show how to use io.lettuce.core.ScoredValue. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TracingRedisCommands.java    From java-redis-client with Apache License 2.0 6 votes vote down vote up
@Override
@Deprecated
public List<ScoredValue<V>> zrangebyscoreWithScores(K key,
    String min, String max) {
  Span span = helper.buildSpan("zrangebyscoreWithScores", key);
  span.setTag("min", min);
  span.setTag("max", max);
  try {
    return commands.zrangebyscoreWithScores(key, min, max);
  } catch (Exception e) {
    onError(e, span);
    throw e;
  } finally {
    span.finish();
  }
}
 
Example #2
Source File: TracingRedisAdvancedClusterCommands.java    From java-redis-client with Apache License 2.0 6 votes vote down vote up
@Override
@Deprecated
public List<ScoredValue<V>> zrevrangebyscoreWithScores(K key,
    String max, String min) {
  Span span = helper.buildSpan("zrevrangebyscoreWithScores", key);
  span.setTag("max", max);
  span.setTag("min", min);
  try {
    return commands.zrevrangebyscoreWithScores(key, max, min);
  } catch (Exception e) {
    onError(e, span);
    throw e;
  } finally {
    span.finish();
  }
}
 
Example #3
Source File: TracingRedisCommands.java    From java-redis-client with Apache License 2.0 6 votes vote down vote up
@Override
public List<ScoredValue<V>> zrevrangebyscoreWithScores(K key,
    Range<? extends Number> range, Limit
    limit) {
  Span span = helper.buildSpan("zrevrangebyscoreWithScores", key);
  span.setTag("range", nullable(range));
  span.setTag("limit", nullable(limit));
  try {
    return commands.zrevrangebyscoreWithScores(key, range, limit);
  } catch (Exception e) {
    onError(e, span);
    throw e;
  } finally {
    span.finish();
  }
}
 
Example #4
Source File: TracingRedisCommands.java    From java-redis-client with Apache License 2.0 6 votes vote down vote up
@Override
@Deprecated
public List<ScoredValue<V>> zrevrangebyscoreWithScores(K key, double max,
    double min, long offset, long count) {
  Span span = helper.buildSpan("zrevrangebyscoreWithScores", key);
  span.setTag("max", max);
  span.setTag("min", min);
  span.setTag("offset", offset);
  span.setTag("count", count);
  try {
    return commands.zrevrangebyscoreWithScores(key, max, min, offset, count);
  } catch (Exception e) {
    onError(e, span);
    throw e;
  } finally {
    span.finish();
  }
}
 
Example #5
Source File: TracingRedisCommands.java    From java-redis-client with Apache License 2.0 6 votes vote down vote up
@Override
@Deprecated
public List<ScoredValue<V>> zrangebyscoreWithScores(K key, double min,
    double max, long offset, long count) {
  Span span = helper.buildSpan("zrangebyscoreWithScores", key);
  span.setTag("min", min);
  span.setTag("max", max);
  span.setTag("offset", offset);
  span.setTag("count", count);
  try {
    return commands.zrangebyscoreWithScores(key, min, max, offset, count);
  } catch (Exception e) {
    onError(e, span);
    throw e;
  } finally {
    span.finish();
  }
}
 
Example #6
Source File: TracingRedisAdvancedClusterCommands.java    From java-redis-client with Apache License 2.0 6 votes vote down vote up
@Override
@Deprecated
public List<ScoredValue<V>> zrevrangebyscoreWithScores(K key,
    String max, String min, long offset,
    long count) {
  Span span = helper.buildSpan("zrevrangebyscoreWithScores", key);
  span.setTag("max", max);
  span.setTag("min", min);
  span.setTag("offset", offset);
  span.setTag("count", count);
  try {
    return commands.zrevrangebyscoreWithScores(key, max, min, offset, count);
  } catch (Exception e) {
    onError(e, span);
    throw e;
  } finally {
    span.finish();
  }
}
 
Example #7
Source File: TracingRedisAdvancedClusterCommands.java    From java-redis-client with Apache License 2.0 6 votes vote down vote up
@Override
@Deprecated
public List<ScoredValue<V>> zrevrangebyscoreWithScores(K key,
    String max, String min) {
  Span span = helper.buildSpan("zrevrangebyscoreWithScores", key);
  span.setTag("max", max);
  span.setTag("min", min);
  try {
    return commands.zrevrangebyscoreWithScores(key, max, min);
  } catch (Exception e) {
    onError(e, span);
    throw e;
  } finally {
    span.finish();
  }
}
 
Example #8
Source File: TracingRedisAdvancedClusterCommands.java    From java-redis-client with Apache License 2.0 6 votes vote down vote up
@Override
@Deprecated
public List<ScoredValue<V>> zrangebyscoreWithScores(K key,
    String min, String max) {
  Span span = helper.buildSpan("zrangebyscoreWithScores", key);
  span.setTag("min", min);
  span.setTag("max", max);
  try {
    return commands.zrangebyscoreWithScores(key, min, max);
  } catch (Exception e) {
    onError(e, span);
    throw e;
  } finally {
    span.finish();
  }
}
 
Example #9
Source File: TracingRedisAdvancedClusterCommands.java    From java-redis-client with Apache License 2.0 6 votes vote down vote up
@Override
@Deprecated
public List<ScoredValue<V>> zrevrangebyscoreWithScores(K key, double max,
    double min, long offset, long count) {
  Span span = helper.buildSpan("zrevrangebyscoreWithScores", key);
  span.setTag("max", max);
  span.setTag("min", min);
  span.setTag("offset", offset);
  span.setTag("count", count);
  try {
    return commands.zrevrangebyscoreWithScores(key, max, min, offset, count);
  } catch (Exception e) {
    onError(e, span);
    throw e;
  } finally {
    span.finish();
  }
}
 
Example #10
Source File: TracingRedisCommands.java    From java-redis-client with Apache License 2.0 6 votes vote down vote up
@Override
@Deprecated
public List<ScoredValue<V>> zrevrangebyscoreWithScores(K key, double max,
    double min) {
  Span span = helper.buildSpan("zrevrangebyscoreWithScores", key);
  span.setTag("max", max);
  span.setTag("min", min);
  try {
    return commands.zrevrangebyscoreWithScores(key, max, min);
  } catch (Exception e) {
    onError(e, span);
    throw e;
  } finally {
    span.finish();
  }
}
 
Example #11
Source File: TracingRedisCommands.java    From java-redis-client with Apache License 2.0 6 votes vote down vote up
@Override
@Deprecated
public List<ScoredValue<V>> zrangebyscoreWithScores(K key, double min,
    double max) {
  Span span = helper.buildSpan("zrangebyscoreWithScores", key);
  span.setTag("min", min);
  span.setTag("max", max);
  try {
    return commands.zrangebyscoreWithScores(key, min, max);
  } catch (Exception e) {
    onError(e, span);
    throw e;
  } finally {
    span.finish();
  }
}
 
Example #12
Source File: TracingRedisAdvancedClusterCommands.java    From java-redis-client with Apache License 2.0 6 votes vote down vote up
@Override
@Deprecated
public List<ScoredValue<V>> zrevrangebyscoreWithScores(K key,
    String max, String min, long offset,
    long count) {
  Span span = helper.buildSpan("zrevrangebyscoreWithScores", key);
  span.setTag("max", max);
  span.setTag("min", min);
  span.setTag("offset", offset);
  span.setTag("count", count);
  try {
    return commands.zrevrangebyscoreWithScores(key, max, min, offset, count);
  } catch (Exception e) {
    onError(e, span);
    throw e;
  } finally {
    span.finish();
  }
}
 
Example #13
Source File: TracingRedisCommands.java    From java-redis-client with Apache License 2.0 6 votes vote down vote up
@Override
@Deprecated
public List<ScoredValue<V>> zrangebyscoreWithScores(K key, double min,
    double max) {
  Span span = helper.buildSpan("zrangebyscoreWithScores", key);
  span.setTag("min", min);
  span.setTag("max", max);
  try {
    return commands.zrangebyscoreWithScores(key, min, max);
  } catch (Exception e) {
    onError(e, span);
    throw e;
  } finally {
    span.finish();
  }
}
 
Example #14
Source File: TracingRedisCommands.java    From java-redis-client with Apache License 2.0 6 votes vote down vote up
@Override
@Deprecated
public List<ScoredValue<V>> zrangebyscoreWithScores(K key,
    String min, String max) {
  Span span = helper.buildSpan("zrangebyscoreWithScores", key);
  span.setTag("min", min);
  span.setTag("max", max);
  try {
    return commands.zrangebyscoreWithScores(key, min, max);
  } catch (Exception e) {
    onError(e, span);
    throw e;
  } finally {
    span.finish();
  }
}
 
Example #15
Source File: TracingRedisCommands.java    From java-redis-client with Apache License 2.0 6 votes vote down vote up
@Override
@Deprecated
public List<ScoredValue<V>> zrevrangebyscoreWithScores(K key,
    String max, String min, long offset,
    long count) {
  Span span = helper.buildSpan("zrevrangebyscoreWithScores", key);
  span.setTag("max", max);
  span.setTag("min", min);
  span.setTag("offset", offset);
  span.setTag("count", count);
  try {
    return commands.zrevrangebyscoreWithScores(key, max, min, offset, count);
  } catch (Exception e) {
    onError(e, span);
    throw e;
  } finally {
    span.finish();
  }
}
 
Example #16
Source File: TracingRedisCommands.java    From java-redis-client with Apache License 2.0 6 votes vote down vote up
@Override
@Deprecated
public List<ScoredValue<V>> zrevrangebyscoreWithScores(K key, double max,
    double min, long offset, long count) {
  Span span = helper.buildSpan("zrevrangebyscoreWithScores", key);
  span.setTag("max", max);
  span.setTag("min", min);
  span.setTag("offset", offset);
  span.setTag("count", count);
  try {
    return commands.zrevrangebyscoreWithScores(key, max, min, offset, count);
  } catch (Exception e) {
    onError(e, span);
    throw e;
  } finally {
    span.finish();
  }
}
 
Example #17
Source File: TracingRedisCommands.java    From java-redis-client with Apache License 2.0 6 votes vote down vote up
@Override
@Deprecated
public List<ScoredValue<V>> zrangebyscoreWithScores(K key,
    String min, String max, long offset, long
    count) {
  Span span = helper.buildSpan("zrangebyscoreWithScores", key);
  span.setTag("min", min);
  span.setTag("max", max);
  span.setTag("offset", offset);
  span.setTag("count", count);
  try {
    return commands.zrangebyscoreWithScores(key, min, max, offset, count);
  } catch (Exception e) {
    onError(e, span);
    throw e;
  } finally {
    span.finish();
  }
}
 
Example #18
Source File: TracingRedisAdvancedClusterCommands.java    From java-redis-client with Apache License 2.0 6 votes vote down vote up
@Override
@Deprecated
public List<ScoredValue<V>> zrangebyscoreWithScores(K key,
    String min, String max, long offset, long
    count) {
  Span span = helper.buildSpan("zrangebyscoreWithScores", key);
  span.setTag("min", min);
  span.setTag("max", max);
  span.setTag("offset", offset);
  span.setTag("count", count);
  try {
    return commands.zrangebyscoreWithScores(key, min, max, offset, count);
  } catch (Exception e) {
    onError(e, span);
    throw e;
  } finally {
    span.finish();
  }
}
 
Example #19
Source File: TracingRedisAdvancedClusterAsyncCommands.java    From java-redis-client with Apache License 2.0 5 votes vote down vote up
@Override
public RedisFuture<List<ScoredValue<V>>> zrangeWithScores(
    K key, long start, long stop) {
  Span span = helper.buildSpan("zrangeWithScores", key);
  span.setTag("start", start);
  span.setTag("stop", stop);
  return prepareRedisFuture(commands.zrangeWithScores(key, start, stop), span);
}
 
Example #20
Source File: TracingRedisCommands.java    From java-redis-client with Apache License 2.0 5 votes vote down vote up
@Override
public List<ScoredValue<V>> zrevrangebyscoreWithScores(K key,
    Range<? extends Number> range) {
  Span span = helper.buildSpan("zrevrangebyscoreWithScores", key);
  span.setTag("range", nullable(range));
  try {
    return commands.zrevrangebyscoreWithScores(key, range);
  } catch (Exception e) {
    onError(e, span);
    throw e;
  } finally {
    span.finish();
  }
}
 
Example #21
Source File: TracingRedisAdvancedClusterAsyncCommands.java    From java-redis-client with Apache License 2.0 5 votes vote down vote up
@Override
public RedisFuture<List<ScoredValue<V>>> zrevrangebyscoreWithScores(
    K key, Range<? extends Number> range, Limit limit) {
  Span span = helper.buildSpan("zrevrangebyscoreWithScores", key);
  span.setTag("range", nullable(range));
  span.setTag("limit", nullable(limit));
  return prepareRedisFuture(commands.zrevrangebyscoreWithScores(key, range, limit), span);
}
 
Example #22
Source File: TracingRedisCommands.java    From java-redis-client with Apache License 2.0 5 votes vote down vote up
@Override
public Long zadd(K key, ZAddArgs zAddArgs,
    ScoredValue<V>... scoredValues) {
  Span span = helper.buildSpan("zadd", key);
  try {
    return commands.zadd(key, zAddArgs, scoredValues);
  } catch (Exception e) {
    onError(e, span);
    throw e;
  } finally {
    span.finish();
  }
}
 
Example #23
Source File: TracingRedisAsyncCommands.java    From java-redis-client with Apache License 2.0 5 votes vote down vote up
@Override
public RedisFuture<List<ScoredValue<V>>> zrangeWithScores(
    K key, long start, long stop) {
  Span span = helper.buildSpan("zrangeWithScores", key);
  span.setTag("start", start);
  span.setTag("stop", stop);
  return prepareRedisFuture(commands.zrangeWithScores(key, start, stop), span);
}
 
Example #24
Source File: TracingRedisAdvancedClusterCommands.java    From java-redis-client with Apache License 2.0 5 votes vote down vote up
@Override
public List<ScoredValue<V>> zrevrangebyscoreWithScores(K key,
    Range<? extends Number> range) {
  Span span = helper.buildSpan("zrevrangebyscoreWithScores", key);
  span.setTag("range", nullable(range));
  try {
    return commands.zrevrangebyscoreWithScores(key, range);
  } catch (Exception e) {
    onError(e, span);
    throw e;
  } finally {
    span.finish();
  }
}
 
Example #25
Source File: TracingRedisAdvancedClusterCommands.java    From java-redis-client with Apache License 2.0 5 votes vote down vote up
@Override
public Long zadd(K key, ZAddArgs zAddArgs,
    ScoredValue<V>... scoredValues) {
  Span span = helper.buildSpan("zadd", key);
  try {
    return commands.zadd(key, zAddArgs, scoredValues);
  } catch (Exception e) {
    onError(e, span);
    throw e;
  } finally {
    span.finish();
  }
}
 
Example #26
Source File: TracingRedisAsyncCommands.java    From java-redis-client with Apache License 2.0 5 votes vote down vote up
@Override
@Deprecated
public RedisFuture<List<ScoredValue<V>>> zrevrangebyscoreWithScores(
    K key, String max, String min, long offset, long count) {
  Span span = helper.buildSpan("zrevrangebyscoreWithScores", key);
  span.setTag("max", max);
  span.setTag("min", min);
  span.setTag("offset", offset);
  span.setTag("count", count);
  return prepareRedisFuture(commands.zrevrangebyscoreWithScores(key, max, min, offset, count),
      span);
}
 
Example #27
Source File: TracingRedisAdvancedClusterCommands.java    From java-redis-client with Apache License 2.0 5 votes vote down vote up
@Override
public List<ScoredValue<V>> zrevrangebyscoreWithScores(K key,
    Range<? extends Number> range) {
  Span span = helper.buildSpan("zrevrangebyscoreWithScores", key);
  span.setTag("range", nullable(range));
  try {
    return commands.zrevrangebyscoreWithScores(key, range);
  } catch (Exception e) {
    onError(e, span);
    throw e;
  } finally {
    span.finish();
  }
}
 
Example #28
Source File: TracingRedisAdvancedClusterAsyncCommands.java    From java-redis-client with Apache License 2.0 5 votes vote down vote up
@Override
public RedisFuture<List<ScoredValue<V>>> zrangebyscoreWithScores(
    K key, Range<? extends Number> range) {
  Span span = helper.buildSpan("zrangebyscoreWithScores", key);
  span.setTag("range", nullable(range));
  return prepareRedisFuture(commands.zrangebyscoreWithScores(key, range), span);
}
 
Example #29
Source File: TracingRedisAdvancedClusterAsyncCommands.java    From java-redis-client with Apache License 2.0 5 votes vote down vote up
@Override
@Deprecated
public RedisFuture<List<ScoredValue<V>>> zrangebyscoreWithScores(
    K key, String min, String max) {
  Span span = helper.buildSpan("zrangebyscoreWithScores", key);
  span.setTag("min", min);
  span.setTag("max", max);
  return prepareRedisFuture(commands.zrangebyscoreWithScores(key, min, max), span);
}
 
Example #30
Source File: TracingRedisAsyncCommands.java    From java-redis-client with Apache License 2.0 5 votes vote down vote up
@Override
@Deprecated
public RedisFuture<List<ScoredValue<V>>> zrevrangebyscoreWithScores(
    K key, double max, double min, long offset, long count) {
  Span span = helper.buildSpan("zrevrangebyscoreWithScores", key);
  span.setTag("max", max);
  span.setTag("min", min);
  span.setTag("offset", offset);
  span.setTag("count", count);
  return prepareRedisFuture(commands.zrevrangebyscoreWithScores(key, max, min, offset, count),
      span);
}