congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Tracker.notifySwitched
Code IndexAdd Tabnine to your IDE (free)

How to use
notifySwitched
method
in
org.apache.cassandra.db.lifecycle.Tracker

Best Java code snippets using org.apache.cassandra.db.lifecycle.Tracker.notifySwitched (Showing top 3 results out of 315)

origin: jsevellec/cassandra-unit

/**
 * Switch the current memtable. This atomically appends a new memtable to the end of the list of active memtables,
 * returning the previously last memtable. It leaves the previous Memtable in the list of live memtables until
 * discarding(memtable) is called. These two methods must be synchronized/paired, i.e. m = switchMemtable
 * must be followed by discarding(m), they cannot be interleaved.
 *
 * @return the previously active memtable
 */
public Memtable switchMemtable(boolean truncating, Memtable newMemtable)
{
  Pair<View, View> result = apply(View.switchMemtable(newMemtable));
  if (truncating)
    notifyRenewed(newMemtable);
  else
    notifySwitched(result.left.getCurrentMemtable());
  return result.left.getCurrentMemtable();
}
origin: org.apache.cassandra/cassandra-all

/**
 * Switch the current memtable. This atomically appends a new memtable to the end of the list of active memtables,
 * returning the previously last memtable. It leaves the previous Memtable in the list of live memtables until
 * discarding(memtable) is called. These two methods must be synchronized/paired, i.e. m = switchMemtable
 * must be followed by discarding(m), they cannot be interleaved.
 *
 * @return the previously active memtable
 */
public Memtable switchMemtable(boolean truncating, Memtable newMemtable)
{
  Pair<View, View> result = apply(View.switchMemtable(newMemtable));
  if (truncating)
    notifyRenewed(newMemtable);
  else
    notifySwitched(result.left.getCurrentMemtable());
  return result.left.getCurrentMemtable();
}
origin: com.strapdata.cassandra/cassandra-all

/**
 * Switch the current memtable. This atomically appends a new memtable to the end of the list of active memtables,
 * returning the previously last memtable. It leaves the previous Memtable in the list of live memtables until
 * discarding(memtable) is called. These two methods must be synchronized/paired, i.e. m = switchMemtable
 * must be followed by discarding(m), they cannot be interleaved.
 *
 * @return the previously active memtable
 */
public Memtable switchMemtable(boolean truncating, Memtable newMemtable)
{
  Pair<View, View> result = apply(View.switchMemtable(newMemtable));
  if (truncating)
    notifyRenewed(newMemtable);
  else
    notifySwitched(result.left.getCurrentMemtable());
  return result.left.getCurrentMemtable();
}
org.apache.cassandra.db.lifecycleTrackernotifySwitched

Popular methods of Tracker

  • tryModify
  • <init>
  • addInitialSSTables
  • apply
    atomically tests permit against the view and applies function to it, if permit yields true, returnin
  • dropSSTables
    removes all sstables that are not busy compacting.
  • dropSSTablesIfInvalid
  • emptySet
  • isDummy
  • updateSizeTracking
  • addSSTables
  • getCompacting
  • getMemtableFor
    get the Memtable that the ordered writeOp should be directed to
  • getCompacting,
  • getMemtableFor,
  • getUncompacting,
  • getView,
  • markFlushing,
  • maybeIncrementallyBackup,
  • notify,
  • notifyAdded,
  • notifyDeleting,
  • notifyDiscarded

Popular in Java

  • Reading from database using SQL prepared statement
  • setContentView (Activity)
  • putExtra (Intent)
  • notifyDataSetChanged (ArrayAdapter)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • 21 Best IntelliJ Plugins
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