congrats Icon
New! Announcing our next generation AI code completions
Read here
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 post requests using okhttp
  • getContentResolver (Context)
  • putExtra (Intent)
  • startActivity (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Kernel (java.awt.image)
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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