/** {@inheritDoc} */ @Override public void flush() throws IOException { helper.flush(); handleExceptions(); }
/** {@inheritDoc} */ @Override public void close() throws IOException { helper.close(); handleExceptions(); }
/** {@inheritDoc} */ @Override public void close() throws IOException { helper.close(); handleExceptions(); }
/** {@inheritDoc} */ @Override public void flush() throws IOException { helper.flush(); handleExceptions(); }
/** {@inheritDoc} */ @Override public void mutate(List<? extends Mutation> mutations) throws IOException { handleExceptions(); List<ListenableFuture<?>> futures = helper.mutate(mutations); for (int i = 0; i < mutations.size(); i++) { addCallback(futures.get(i), mutations.get(i)); } }
/** {@inheritDoc} */ @Override public void mutate(List<? extends Mutation> mutations) throws IOException { handleExceptions(); List<ListenableFuture<?>> futures = helper.mutate(mutations); for (int i = 0; i < mutations.size(); i++) { addCallback(futures.get(i), mutations.get(i)); } }
/** * {@inheritDoc} * * Being a Mutation. This method will block if either of the following are true: * 1) There are more than {@code maxInflightRpcs} RPCs in flight * 2) There are more than {@link #getWriteBufferSize()} bytes pending */ @Override public void mutate(Mutation mutation) throws IOException { handleExceptions(); addCallback(helper.mutate(mutation), mutation); }
/** * {@inheritDoc} * * Being a Mutation. This method will block if either of the following are true: * 1) There are more than {@code maxInflightRpcs} RPCs in flight * 2) There are more than {@link #getWriteBufferSize()} bytes pending */ @Override public void mutate(Mutation mutation) throws IOException { handleExceptions(); addCallback(helper.mutate(mutation), mutation); }