Package org.springframework.data.keyvalue.riak

Examples of org.springframework.data.keyvalue.riak.DataStoreOperationException


                key,
                requiredType.getName()));
          }
        }
      } catch (Throwable t) {
        DataStoreOperationException dsoe = new DataStoreOperationException(t.getMessage(), t);
        if (null != callback) {
          return callback.failed(dsoe);
        } else {
          defaultErrorHandler.failed(dsoe);
        }
View Full Code Here


          if (null != callback) {
            return callback.completed(null, headers);
          }
        }
      } catch (Throwable t) {
        DataStoreOperationException dsoe = new DataStoreOperationException(t.getMessage(), t);
        if (null != callback) {
          return callback.failed(dsoe);
        } else {
          defaultErrorHandler.failed(dsoe);
        }
View Full Code Here

        getRestTemplate().delete(defaultUri, bucket, key);
        if (null != callback) {
          return callback.completed(null, true);
        }
      } catch (Throwable t) {
        DataStoreOperationException dsoe = new DataStoreOperationException(t.getMessage(), t);
        if (null != callback) {
          return callback.failed(dsoe);
        } else {
          defaultErrorHandler.failed(dsoe);
        }
View Full Code Here

          op.setRequiredType((Class<?>) o);
        } else if (o instanceof String) {
          try {
            op.setRequiredType(Class.forName((String) o));
          } catch (ClassNotFoundException e) {
            throw new DataStoreOperationException(e.getMessage(), e);
          }
        } else {
          op.setRequiredType(o.getClass());
        }
      }
View Full Code Here

                }
              }

            }
          } else {
            throw new DataStoreOperationException(
                "Cannot convert object of type " + origType + " to type " + requiredType);
          }
        }
      }
      return new RiakValue<T>((T) o, meta);
View Full Code Here

                      }
                    } else {
                      results.add(getFut);
                    }
                  } catch (InterruptedException e) {
                    throw new DataStoreOperationException(e.getMessage(), e);
                  } catch (ExecutionException e) {
                    throw new DataStoreOperationException(e.getMessage(), e);
                  } catch (TimeoutException e) {
                    throw new DataStoreOperationException(e.getMessage(), e);
                  }
                }
                return (results.size() > 0 ? results : null);
              }
View Full Code Here

TOP

Related Classes of org.springframework.data.keyvalue.riak.DataStoreOperationException

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.