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

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

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

origin: OpenHFT/Chronicle-Queue

@Override
public int defaultIndexCount() {
  return delegate.defaultIndexCount();
}
origin: OpenHFT/Chronicle-Queue

public int indexCount() {
  return indexCount == null || indexCount <= 0 ? rollCycle().defaultIndexCount() : indexCount;
}
origin: OpenHFT/Chronicle-Queue

/**
 * @param rollCycle    the current rollCycle
 * @param wireType     the wire type that is being used
 * @param mappedBytes  used to mapped the data store file
 * @param indexCount   the number of entries in each index.
 * @param indexSpacing the spacing between indexed entries.
 */
public SingleChronicleQueueStore(@NotNull RollCycle rollCycle,
                 @NotNull final WireType wireType,
                 @NotNull MappedBytes mappedBytes,
                 int indexCount,
                 int indexSpacing) {
  this.mappedBytes = mappedBytes;
  this.mappedFile = mappedBytes.mappedFile();
  this.refCount = ReferenceCounter.onReleased(this::onCleanup);
  indexCount = Maths.nextPower2(indexCount, 8);
  indexSpacing = Maths.nextPower2(indexSpacing, 1);
  this.indexing = new SCQIndexing(wireType, indexCount, indexSpacing);
  this.indexing.writePosition = this.writePosition = wireType.newTwoLongReference().get();
  this.indexing.sequence = this.sequence = new RollCycleEncodeSequence(writePosition,
      rollCycle.defaultIndexCount(),
      rollCycle.defaultIndexSpacing());
}
origin: net.openhft/chronicle-queue

public int indexCount() {
  return indexCount == null || indexCount <= 0 ? rollCycle().defaultIndexCount() : indexCount;
}
origin: net.openhft/chronicle-queue

/**
 * @param rollCycle    the current rollCycle
 * @param wireType     the wire type that is being used
 * @param mappedBytes  used to mapped the data store file
 * @param indexCount   the number of entries in each index.
 * @param indexSpacing the spacing between indexed entries.
 */
public SingleChronicleQueueStore(@NotNull RollCycle rollCycle,
                 @NotNull final WireType wireType,
                 @NotNull MappedBytes mappedBytes,
                 int indexCount,
                 int indexSpacing) {
  this.mappedBytes = mappedBytes;
  this.mappedFile = mappedBytes.mappedFile();
  this.refCount = ReferenceCounter.onReleased(this::onCleanup);
  indexCount = Maths.nextPower2(indexCount, 8);
  indexSpacing = Maths.nextPower2(indexSpacing, 1);
  this.indexing = new SCQIndexing(wireType, indexCount, indexSpacing);
  this.indexing.writePosition = this.writePosition = wireType.newTwoLongReference().get();
  this.indexing.sequence = this.sequence = new RollCycleEncodeSequence(writePosition,
      rollCycle.defaultIndexCount(),
      rollCycle.defaultIndexSpacing());
}
net.openhft.chronicle.queueRollCycledefaultIndexCount

Popular methods of RollCycle

  • current
  • length
  • toCycle
  • toIndex
  • defaultIndexSpacing
  • toSequenceNumber
  • format

Popular in Java

  • Creating JSON documents from java classes using gson
  • setContentView (Activity)
  • getContentResolver (Context)
  • onRequestPermissionsResult (Fragment)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • 21 Best Atom Packages for 2021
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