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

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

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

MemcachedClient.checkState介绍

暂无

代码示例

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

  1. private CountDownLatch broadcastOp(BroadcastOpFactory of,
  2. Collection<MemcachedNode> nodes, boolean checkShuttingDown) {
  3. checkState();
  4. if (checkShuttingDown && shuttingDown) {
  5. throw new IllegalStateException("Shutting down");
  6. }
  7. return mconn.broadcastOperation(of, nodes);
  8. }

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

  1. private void enqueueOperation(String key, Operation op){
  2. checkState();
  3. mconn.enqueueOperation(key, op);
  4. }

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

  1. /**
  2. * (internal use) Add a raw operation to a numbered connection.
  3. * This method is exposed for testing.
  4. *
  5. * @param which server number
  6. * @param op the operation to perform
  7. * @return the Operation
  8. */
  9. Operation addOp(final String key, final Operation op) {
  10. validateKey(key);
  11. checkState();
  12. conn.addOperation(key, op);
  13. return op;
  14. }

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

  1. /**
  2. * (internal use) Add a raw operation to a numbered connection.
  3. * This method is exposed for testing.
  4. *
  5. * @param which server number
  6. * @param op the operation to perform
  7. * @return the Operation
  8. */
  9. Operation addOp(final String key, final Operation op) {
  10. validateKey(key);
  11. checkState();
  12. conn.addOperation(key, op);
  13. return op;
  14. }

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

  1. /**
  2. * (internal use) Add a raw operation to a numbered connection.
  3. * This method is exposed for testing.
  4. *
  5. * @param which server number
  6. * @param op the operation to perform
  7. * @return the Operation
  8. */
  9. protected Operation addOp(final String key, final Operation op) {
  10. validateKey(key);
  11. checkState();
  12. conn.addOperation(key, op);
  13. return op;
  14. }

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

  1. checkState();
  2. conn.addOperations(mops);
  3. return new BulkGetFuture<T>(m, ops, latch);

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

  1. checkState();
  2. conn.addOperations(mops);
  3. return new BulkGetFuture<T>(m, ops, latch);

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

  1. checkState();
  2. for (Map.Entry<MemcachedNode, List<Collection<String>>> me
  3. : chunks.entrySet()) {

相关文章