Package javax.datagrid

Examples of javax.datagrid.DataGridException


  @Override
  public <K extends Serializable, V extends Serializable> V take(K key) {
    try {
      return (V) asyncTake(key).get();
    } catch (InterruptedException e) {
      throw new DataGridException(e);
    } catch (ExecutionException e) {
      throw new DataGridException(e);
    }
  }
View Full Code Here


  @Override
  public <K extends Serializable, V extends Serializable> V write(K key, V value, long expiry) {
    try {
      return asyncWrite(key, value, expiry).get();
    } catch (InterruptedException e) {
      throw new DataGridException(e);
    } catch (ExecutionException e) {
      throw new DataGridException(e);
    }
  }
View Full Code Here

TOP

Related Classes of javax.datagrid.DataGridException

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.