Examples of GetOperation


Examples of com.hazelcast.map.operation.GetOperation

        return key;
    }

    @Override
    protected Operation prepareOperation() {
        return new GetOperation(name, key);
    }
View Full Code Here

Examples of com.hazelcast.map.operation.GetOperation

                    cached = null;
                }
                return cached;
            }
        }
        GetOperation operation = new GetOperation(name, key);
        final NodeEngine nodeEngine = getNodeEngine();
        int partitionId = nodeEngine.getPartitionService().getPartitionId(key);
        try {
            Future f = nodeEngine.getOperationService()
                    .invokeOnPartition(MapService.SERVICE_NAME, operation, partitionId);
View Full Code Here

Examples of net.spy.memcached.ops.GetOperation

      OptimizedGetImpl og=new OptimizedGetImpl(
          (GetOperation)optimizedOp);
      optimizedOp=og;

      while(writeQ.peek() instanceof GetOperation) {
        GetOperation o=(GetOperation) writeQ.remove();
        if(!o.isCancelled()) {
          og.addOperation(o);
        }
      }

      // Initialize the new mega get
View Full Code Here

Examples of net.spy.memcached.ops.GetOperation

      OptimizedGetImpl og = new OptimizedGetImpl((GetOperation) optimizedOp);
      optimizedOp = og;

      while (writeQ.peek() instanceof GetOperation
          && og.size() < MAX_GET_OPTIMIZATION_COUNT) {
        GetOperation o = (GetOperation) writeQ.remove();
        if (!o.isCancelled()) {
          og.addOperation(o);
        }
      }

      // Initialize the new mega get
View Full Code Here

Examples of net.spy.memcached.ops.GetOperation

      if(writeQ.peek() instanceof GetOperation) {
        OptimizedGetImpl og=new OptimizedGetImpl(getOp);
        getOp=og;

        while(writeQ.peek() instanceof GetOperation) {
          GetOperation o=(GetOperation) writeQ.remove();
          if(!o.isCancelled()) {
            og.addOperation(o);
          }
        }

        // Initialize the new mega get
View Full Code Here

Examples of net.spy.memcached.ops.GetOperation

      OptimizedGetImpl og=new OptimizedGetImpl(
          (GetOperation)optimizedOp);
      optimizedOp=og;

      while(writeQ.peek() instanceof GetOperation) {
        GetOperation o=(GetOperation) writeQ.remove();
        if(!o.isCancelled()) {
          og.addOperation(o);
        }
      }

      // Initialize the new mega get
View Full Code Here

Examples of org.infinispan.client.hotrod.impl.operations.GetOperation

   @Override
   @SuppressWarnings("unchecked")
   public V get(Object key) {
      assertRemoteCacheManagerIsStarted();
      byte[] keyBytes = obj2bytes(key, true);
      GetOperation gco = operationsFactory.newGetKeyOperation(keyBytes);
      byte[] bytes = gco.execute();
      V result = (V) bytes2obj(bytes);
      if (log.isTraceEnabled()) {
         log.tracef("For key(%s) returning %s", key, result);
      }
      return result;
View Full Code Here

Examples of org.infinispan.client.hotrod.impl.operations.GetOperation

   @Override
   public V get(Object key) {
      assertRemoteCacheManagerIsStarted();
      byte[] keyBytes = obj2bytes(key, true);
      GetOperation gco = operationsFactory.newGetKeyOperation(keyBytes);
      byte[] bytes = (byte[]) gco.execute();
      V result = (V) bytes2obj(bytes);
      if (log.isTraceEnabled()) {
         log.tracef("For key(%s) returning %s", key, result);
      }
      return result;
View Full Code Here

Examples of org.infinispan.client.hotrod.impl.operations.GetOperation

   @Override
   @SuppressWarnings("unchecked")
   public V get(Object key) {
      assertRemoteCacheManagerIsStarted();
      byte[] keyBytes = obj2bytes(key, true);
      GetOperation gco = operationsFactory.newGetKeyOperation(keyBytes);
      byte[] bytes = (byte[]) gco.execute();
      V result = (V) bytes2obj(bytes);
      if (log.isTraceEnabled()) {
         log.tracef("For key(%s) returning %s", key, result);
      }
      return result;
View Full Code Here

Examples of org.infinispan.client.hotrod.impl.operations.GetOperation

   @Override
   @SuppressWarnings("unchecked")
   public V get(Object key) {
      assertRemoteCacheManagerIsStarted();
      byte[] keyBytes = obj2bytes(key, true);
      GetOperation gco = operationsFactory.newGetKeyOperation(keyBytes);
      byte[] bytes = gco.execute();
      V result = (V) bytes2obj(bytes);
      if (log.isTraceEnabled()) {
         log.tracef("For key(%s) returning %s", key, result);
      }
      return result;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.