Package com.shop.cache.api.client.io

Examples of com.shop.cache.api.client.io.SCClient


  }

  @Override
  public List<String> removeGroup(SCGroup group) throws Exception
  {
    SCClient       client = getClient();
    try
    {
      return (client != null) ? client.removeGroup(group) : new ArrayList<String>();
    }
    finally
    {
      releaseClient(client);
    }
View Full Code Here


  }

  @Override
  public List<String> listGroup(SCGroup group) throws Exception
  {
    SCClient       client = getClient();
    try
    {
      return (client != null) ? client.listGroup(group) : new ArrayList<String>();
    }
    finally
    {
      releaseClient(client);
    }
View Full Code Here

  }

  @Override
  public List<String> dumpStats(boolean verbose) throws Exception
  {
    SCClient       client = getClient();
    try
    {
      return (client != null) ? client.dumpStats(verbose) : new ArrayList<String>();
    }
    finally
    {
      releaseClient(client);
    }
View Full Code Here

  }

  @Override
  public List<String> stackTrace() throws Exception
  {
    SCClient       client = getClient();
    try
    {
      return (client != null) ? client.stackTrace() : new ArrayList<String>();
    }
    finally
    {
      releaseClient(client);
    }
View Full Code Here

  }

  @Override
  public List<String> getConnectionList() throws Exception
  {
    SCClient       client = getClient();
    try
    {
      return (client != null) ? client.getConnectionList() : new ArrayList<String>();
    }
    finally
    {
      releaseClient(client);
    }
View Full Code Here

  }

  @Override
  public List<String> regExRemove(String expression) throws Exception
  {
    SCClient       client = getClient();
    try
    {
      return (client != null) ? client.regExRemove(expression) : new ArrayList<String>();
    }
    finally
    {
      releaseClient(client);
    }
View Full Code Here

  }

  @Override
  public void writeKeyData(String fPath) throws Exception
  {
    SCClient       client = getClient();
    try
    {
      if ( client != null )
      {
        client.writeKeyData(fPath);
      }
    }
    finally
    {
      releaseClient(client);
View Full Code Here

  }

  @Override
  public long getTTL(String key) throws Exception
  {
    SCClient       client = getClient();
    try
    {
      return (client != null) ? client.getTTL(key) : 0;
    }
    finally
    {
      releaseClient(client);
    }
View Full Code Here

  }

  @Override
  public ChunkedByteArray get(String key, boolean ignoreTTL) throws Exception
  {
    SCClient       client = getClient();
    try
    {
      return (client != null) ? client.get(key, ignoreTTL) : null;
    }
    finally
    {
      releaseClient(client);
    }
View Full Code Here

  }

  @Override
  public void put(String key, SCDataSpec data, SCGroupSpec groups) throws Exception
  {
    SCClient       client = getClient();
    try
    {
      if ( client != null )
      {
        client.put(key, data, groups);
      }
    }
    finally
    {
      releaseClient(client);
View Full Code Here

TOP

Related Classes of com.shop.cache.api.client.io.SCClient

Copyright © 2018 www.massapicom. 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.