net.spy.memcached.MemcachedClient.asyncMutate()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(8.6k)|赞(0)|评价(0)|浏览(108)

本文整理了Java中net.spy.memcached.MemcachedClient.asyncMutate()方法的一些代码示例,展示了MemcachedClient.asyncMutate()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MemcachedClient.asyncMutate()方法的具体详情如下:
包路径:net.spy.memcached.MemcachedClient
类名称:MemcachedClient
方法名:asyncMutate

MemcachedClient.asyncMutate介绍

暂无

代码示例

代码示例来源:origin: com.google.code.simple-spring-memcached/spymemcached

/**
 * Asychronous increment.
 *
 * @param key key to increment
 * @param by the amount to increment the value by
 * @return a future with the incremented value, or -1 if the increment failed.
 * @throws IllegalStateException in the rare circumstance where queue is too
 *           full to accept any more requests
 */
public OperationFuture<Long> asyncIncr(String key, long by) {
 return asyncMutate(Mutator.incr, key, by, 0, -1);
}

代码示例来源:origin: com.google.code.simple-spring-memcached/spymemcached

/**
 * Asynchronous decrement.
 *
 * @param key key to increment
 * @param by the amount to increment the value by
 * @return a future with the decremented value, or -1 if the increment failed.
 * @throws IllegalStateException in the rare circumstance where queue is too
 *           full to accept any more requests
 */
public OperationFuture<Long> asyncDecr(String key, long by) {
 return asyncMutate(Mutator.decr, key, by, 0, -1);
}

代码示例来源:origin: com.google.code.simple-spring-memcached/spymemcached

/**
 * Asynchronous decrement.
 *
 * @param key key to increment
 * @param by the amount to increment the value by
 * @return a future with the decremented value, or -1 if the increment failed.
 * @throws IllegalStateException in the rare circumstance where queue is too
 *           full to accept any more requests
 */
public OperationFuture<Long> asyncDecr(String key, int by) {
 return asyncMutate(Mutator.decr, key, (long)by, 0, -1);
}

代码示例来源:origin: com.google.code.simple-spring-memcached/spymemcached

/**
 * Asychronous increment.
 *
 * @param key key to increment
 * @param by the amount to increment the value by
 * @return a future with the incremented value, or -1 if the increment failed.
 * @throws IllegalStateException in the rare circumstance where queue is too
 *           full to accept any more requests
 */
public OperationFuture<Long> asyncIncr(String key, int by) {
 return asyncMutate(Mutator.incr, key, (long)by, 0, -1);
}

代码示例来源:origin: com.google.code.maven-play-plugin.spy/memcached

/**
 * Asychronous increment.
 *
 * @return a future with the incremented value, or -1 if the
 *           increment failed.
 * @throws IllegalStateException in the rare circumstance where queue
 *         is too full to accept any more requests
 */
public Future<Long> asyncIncr(String key, int by) {
  return asyncMutate(Mutator.incr, key, by, 0, -1);
}

代码示例来源:origin: com.google.code.maven-play-plugin.spy/memcached

/**
 * Asynchronous decrement.
 *
 * @return a future with the decremented value, or -1 if the
 *           increment failed.
 * @throws IllegalStateException in the rare circumstance where queue
 *         is too full to accept any more requests
 */
public Future<Long> asyncDecr(String key, int by) {
  return asyncMutate(Mutator.decr, key, by, 0, -1);
}

代码示例来源:origin: naver/arcus-java-client

/**
 * Asychronous increment.
 *
 * @param key key to increment
 * @param by  the amount to increment the value by
 * @param def the default value (if the counter does not exist)
 * @param exp the expiration of this object
 * @return a future with the incremented value, or -1 if the
 * increment failed.
 * @throws IllegalStateException in the rare circumstance where queue
 *                               is too full to accept any more requests
 */
public Future<Long> asyncIncr(String key, int by, long def, int exp) {
 return asyncMutate(Mutator.incr, key, by, def, exp);
}

代码示例来源:origin: net.spy/spymemcached

/**
 * Asychronous increment.
 *
 * @param key key to increment
 * @param by the amount to increment the value by
 * @return a future with the incremented value, or -1 if the increment failed.
 * @throws IllegalStateException in the rare circumstance where queue is too
 *           full to accept any more requests
 */
@Override
public OperationFuture<Long> asyncIncr(String key, int by) {
 return asyncMutate(Mutator.incr, key, by, 0, -1);
}

代码示例来源:origin: net.spy/spymemcached

/**
 * Asynchronous decrement.
 *
 * @param key key to decrement
 * @param by the amount to decrement the value by
 * @return a future with the decremented value, or -1 if the decrement failed.
 * @throws IllegalStateException in the rare circumstance where queue is too
 *           full to accept any more requests
 */
@Override
public OperationFuture<Long> asyncDecr(String key, long by) {
 return asyncMutate(Mutator.decr, key, by, 0, -1);
}

代码示例来源:origin: net.spy/spymemcached

/**
 * Asychronous increment.
 *
 * @param key key to increment
 * @param by the amount to increment the value by
 * @return a future with the incremented value, or -1 if the increment failed.
 * @throws IllegalStateException in the rare circumstance where queue is too
 *           full to accept any more requests
 */
@Override
public OperationFuture<Long> asyncIncr(String key, long by) {
 return asyncMutate(Mutator.incr, key, by, 0, -1);
}

代码示例来源:origin: com.amazonaws/elasticache-java-cluster-client

/**
 * Asychronous increment.
 *
 * @param key key to increment
 * @param by the amount to increment the value by
 * @return a future with the incremented value, or -1 if the increment failed.
 * @throws IllegalStateException in the rare circumstance where queue is too
 *           full to accept any more requests
 */
@Override
public OperationFuture<Long> asyncIncr(String key, long by) {
 return asyncMutate(Mutator.incr, key, by, 0, -1);
}

代码示例来源:origin: com.google.code.maven-play-plugin.spy/spymemcached

/**
 * Asynchronous decrement.
 *
 * @param key key to increment
 * @param by the amount to increment the value by
 * @return a future with the decremented value, or -1 if the
 *           increment failed.
 * @throws IllegalStateException in the rare circumstance where queue
 *         is too full to accept any more requests
 */
public Future<Long> asyncDecr(String key, int by) {
  return asyncMutate(Mutator.decr, key, by, 0, -1);
}

代码示例来源:origin: com.amazonaws/elasticache-java-cluster-client

/**
 * Asynchronous decrement.
 *
 * @param key key to decrement
 * @param by the amount to decrement the value by
 * @return a future with the decremented value, or -1 if the decrement failed.
 * @throws IllegalStateException in the rare circumstance where queue is too
 *           full to accept any more requests
 */
@Override
public OperationFuture<Long> asyncDecr(String key, int by) {
 return asyncMutate(Mutator.decr, key, by, 0, -1);
}

代码示例来源:origin: com.amazonaws/elasticache-java-cluster-client

/**
 * Asychronous increment.
 *
 * @param key key to increment
 * @param by the amount to increment the value by
 * @return a future with the incremented value, or -1 if the increment failed.
 * @throws IllegalStateException in the rare circumstance where queue is too
 *           full to accept any more requests
 */
@Override
public OperationFuture<Long> asyncIncr(String key, int by) {
 return asyncMutate(Mutator.incr, key, by, 0, -1);
}

代码示例来源:origin: com.google.code.maven-play-plugin.spy/spymemcached

/**
 * Asychronous increment.
 *
 * @param key key to increment
 * @param by the amount to increment the value by
 * @return a future with the incremented value, or -1 if the
 *           increment failed.
 * @throws IllegalStateException in the rare circumstance where queue
 *         is too full to accept any more requests
 */
public Future<Long> asyncIncr(String key, int by) {
  return asyncMutate(Mutator.incr, key, by, 0, -1);
}

代码示例来源:origin: net.spy/spymemcached

/**
 * Asynchronous decrement.
 *
 * @param key key to decrement
 * @param by the amount to decrement the value by
 * @return a future with the decremented value, or -1 if the decrement failed.
 * @throws IllegalStateException in the rare circumstance where queue is too
 *           full to accept any more requests
 */
@Override
public OperationFuture<Long> asyncDecr(String key, int by) {
 return asyncMutate(Mutator.decr, key, by, 0, -1);
}

代码示例来源:origin: naver/arcus-java-client

/**
 * Asychronous increment.
 *
 * @param key key to increment
 * @param by  the amount to increment the value by
 * @return a future with the incremented value, or -1 if the
 * increment failed.
 * @throws IllegalStateException in the rare circumstance where queue
 *                               is too full to accept any more requests
 */
public Future<Long> asyncIncr(String key, int by) {
 return asyncMutate(Mutator.incr, key, by, -1, 0);
}

代码示例来源:origin: net.spy/spymemcached

/**
 * Asychronous increment.
 *
 * @param key key to increment
 * @param by the amount to increment the value by
 * @param def the default value (if the counter does not exist)
 * @return a future with the incremented value, or -1 if the increment failed.
 * @throws IllegalStateException in the rare circumstance where queue is too
 *           full to accept any more requests
 */
@Override
public OperationFuture<Long> asyncIncr(String key, long by, long def) {
 return asyncMutate(Mutator.incr, key, by, def, 0);
}

代码示例来源:origin: net.spy/spymemcached

/**
 * Asynchronous decrement.
 *
 * @param key key to decrement
 * @param by the amount to decrement the value by
 * @param def the default value (if the counter does not exist)
 * @return a future with the decremented value, or -1 if the decrement failed.
 * @throws IllegalStateException in the rare circumstance where queue is too
 *           full to accept any more requests
 */
@Override
public OperationFuture<Long> asyncDecr(String key, long by, long def) {
 return asyncMutate(Mutator.decr, key, by, def, 0);
}

代码示例来源:origin: net.spy/spymemcached

/**
 * Asynchronous decrement.
 *
 * @param key key to decrement
 * @param by the amount to decrement the value by
 * @param def the default value (if the counter does not exist)
 * @return a future with the decremented value, or -1 if the decrement failed.
 * @throws IllegalStateException in the rare circumstance where queue is too
 *           full to accept any more requests
 */
@Override
public OperationFuture<Long> asyncDecr(String key, int by, long def) {
 return asyncMutate(Mutator.decr, key, by, def, 0);
}

相关文章