Tabnine Logo
RemoteReadWriteTable.deleteAsync
Code IndexAdd Tabnine to your IDE (free)

How to use
deleteAsync
method
in
org.apache.samza.table.remote.RemoteReadWriteTable

Best Java code snippets using org.apache.samza.table.remote.RemoteReadWriteTable.deleteAsync (Showing top 8 results out of 315)

origin: org.apache.samza/samza-core_2.10

/**
 * {@inheritDoc}
 */
@Override
public void delete(K key) {
 try {
  deleteAsync(key).get();
 } catch (Exception e) {
  throw new SamzaException(e);
 }
}
origin: org.apache.samza/samza-core_2.12

/**
 * {@inheritDoc}
 */
@Override
public void delete(K key) {
 try {
  deleteAsync(key).get();
 } catch (Exception e) {
  throw new SamzaException(e);
 }
}
origin: org.apache.samza/samza-core

/**
 * {@inheritDoc}
 */
@Override
public void delete(K key) {
 try {
  deleteAsync(key).get();
 } catch (Exception e) {
  throw new SamzaException(e);
 }
}
origin: org.apache.samza/samza-core_2.11

/**
 * {@inheritDoc}
 */
@Override
public void delete(K key) {
 try {
  deleteAsync(key).get();
 } catch (Exception e) {
  throw new SamzaException(e);
 }
}
origin: org.apache.samza/samza-core_2.11

/**
 * {@inheritDoc}
 */
@Override
public CompletableFuture<Void> putAsync(K key, V value) {
 Preconditions.checkNotNull(key);
 if (value == null) {
  return deleteAsync(key);
 }
 writeMetrics.numPuts.inc();
 return execute(writeRateLimiter, key, value, writeFn::putAsync, writeMetrics.putNs)
   .exceptionally(e -> {
     throw new SamzaException("Failed to put a record with key=" + key, (Throwable) e);
    });
}
origin: org.apache.samza/samza-core_2.10

/**
 * {@inheritDoc}
 */
@Override
public CompletableFuture<Void> putAsync(K key, V value) {
 Preconditions.checkNotNull(key);
 if (value == null) {
  return deleteAsync(key);
 }
 writeMetrics.numPuts.inc();
 return execute(writeRateLimiter, key, value, writeFn::putAsync, writeMetrics.putNs)
   .exceptionally(e -> {
     throw new SamzaException("Failed to put a record with key=" + key, (Throwable) e);
    });
}
origin: org.apache.samza/samza-core

/**
 * {@inheritDoc}
 */
@Override
public CompletableFuture<Void> putAsync(K key, V value) {
 Preconditions.checkNotNull(key);
 if (value == null) {
  return deleteAsync(key);
 }
 writeMetrics.numPuts.inc();
 return execute(writeRateLimiter, key, value, writeFn::putAsync, writeMetrics.putNs)
   .exceptionally(e -> {
     throw new SamzaException("Failed to put a record with key=" + key, (Throwable) e);
    });
}
origin: org.apache.samza/samza-core_2.12

/**
 * {@inheritDoc}
 */
@Override
public CompletableFuture<Void> putAsync(K key, V value) {
 Preconditions.checkNotNull(key);
 if (value == null) {
  return deleteAsync(key);
 }
 writeMetrics.numPuts.inc();
 return execute(writeRateLimiter, key, value, writeFn::putAsync, writeMetrics.putNs)
   .exceptionally(e -> {
     throw new SamzaException("Failed to put a record with key=" + key, (Throwable) e);
    });
}
org.apache.samza.table.remoteRemoteReadWriteTabledeleteAsync

Popular methods of RemoteReadWriteTable

  • <init>
  • deleteAllAsync
  • execute
  • executeRecords
  • putAllAsync
  • putAsync

Popular in Java

  • Start an intent from android
  • setContentView (Activity)
  • onCreateOptionsMenu (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now