Tabnine Logo
WriteFence
Code IndexAdd Tabnine to your IDE (free)

How to use
WriteFence
in
co.cask.tephra.visibility

Best Java code snippets using co.cask.tephra.visibility.WriteFence (Showing top 4 results out of 315)

origin: co.cask.tephra/tephra-core

 /**
  * Used by a writer to wait on a fence so that changes are visible to all readers with in-progress transactions.
  *
  * @param fenceId uniquely identifies the data that this fence is used to synchronize.
  *                  If the data is a table cell then this id can be composed of the table name, row key
  *                  and column key for the data.
  * @return {@link FenceWait} object
  */
 public static FenceWait prepareWait(byte[] fenceId, TransactionSystemClient txClient)
  throws TransactionFailureException, InterruptedException, TimeoutException {
  return new DefaultFenceWait(new TransactionContext(txClient, new WriteFence(fenceId)));
 }
}
origin: caskdata/tephra

 /**
  * Used by a writer to wait on a fence so that changes are visible to all readers with in-progress transactions.
  *
  * @param fenceId uniquely identifies the data that this fence is used to synchronize.
  *                  If the data is a table cell then this id can be composed of the table name, row key
  *                  and column key for the data.
  * @return {@link FenceWait} object
  */
 public static FenceWait prepareWait(byte[] fenceId, TransactionSystemClient txClient)
  throws TransactionFailureException, InterruptedException, TimeoutException {
  return new DefaultFenceWait(new TransactionContext(txClient, new WriteFence(fenceId)));
 }
}
origin: caskdata/tephra

TransactionAware writeFence = new WriteFence(fenceId);
TransactionContext writeTxContext = new TransactionContext(new InMemoryTxSystemClient(txManager), writeFence);
writeTxContext.start();
origin: caskdata/tephra

TransactionAware writeFence = new WriteFence(fenceId);
TransactionContext writeTxContext = new TransactionContext(new InMemoryTxSystemClient(txManager), writeFence);
writeTxContext.start();
co.cask.tephra.visibilityWriteFence

Javadoc

Implementation used by FenceWait to wait for a VisibilityFence.

Most used methods

  • <init>

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (Timer)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getExternalFilesDir (Context)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Reference (javax.naming)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • 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