Tabnine Logo
RollCycle.current
Code IndexAdd Tabnine to your IDE (free)

How to use
current
method
in
net.openhft.chronicle.queue.RollCycle

Best Java code snippets using net.openhft.chronicle.queue.RollCycle.current (Showing top 6 results out of 315)

origin: OpenHFT/Chronicle-Queue

  @Override
  public int currentCycle(final RollCycle rollCycle, final TimeProvider timeProvider, final long offsetMillis) {
    return rollCycle.current(timeProvider, offsetMillis);
  }
}
origin: OpenHFT/Chronicle-Queue

@Override
public int current(TimeProvider time, long epoch) {
  return delegate.current(time, epoch);
}
origin: OpenHFT/Chronicle-Queue

if (SHOULD_CHECK_CYCLE && cycle != rollCycle.current(time, epoch)) {
  LOG.warn("", new Exception("Creating cycle which is not the current cycle"));
origin: net.openhft/chronicle-queue

  @Override
  public int currentCycle(final RollCycle rollCycle, final TimeProvider timeProvider, final long offsetMillis) {
    return rollCycle.current(timeProvider, offsetMillis);
  }
}
origin: net.openhft/chronicle-engine

@NotNull final RollingChronicleQueue chronicleQueue = (RollingChronicleQueue) this.chronicleQueue;
RollCycle rollCycle = chronicleQueue.rollCycle();
int currentIndex = rollCycle.current(SystemTimeProvider.INSTANCE, 0);
final int cycle = rollCycle.toCycle(currentIndex);
fromIndex0 = rollCycle.toIndex(cycle, 0);
origin: net.openhft/chronicle-queue

if (SHOULD_CHECK_CYCLE && cycle != rollCycle.current(time, epoch)) {
  LOG.warn("", new Exception("Creating cycle which is not the current cycle"));
net.openhft.chronicle.queueRollCyclecurrent

Popular methods of RollCycle

  • length
  • toCycle
  • toIndex
  • defaultIndexCount
  • defaultIndexSpacing
  • toSequenceNumber
  • format

Popular in Java

  • Updating database using SQL prepared statement
  • getExternalFilesDir (Context)
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (Timer)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Github Copilot alternatives
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