Tabnine Logo
MappedBytes.writeLimit
Code IndexAdd Tabnine to your IDE (free)

How to use
writeLimit
method
in
net.openhft.chronicle.bytes.MappedBytes

Best Java code snippets using net.openhft.chronicle.bytes.MappedBytes.writeLimit (Showing top 4 results out of 315)

origin: OpenHFT/Chronicle-Queue

mappedBytes.writeLimit(mappedBytes.realCapacity());
mappedBytes.writePosition(mappedBytes.readPosition());
long pos = recovery.writeHeader(mappedWire, safeLength, timeoutMS, null, null);
origin: net.openhft/chronicle-bytes

private synchronized void acquireNextByteStore0(final long offset, final boolean set) {
  @Nullable BytesStore oldBS = this.bytesStore;
  try {
    @Nullable BytesStore newBS = mappedFile.acquireByteStore(offset);
    this.bytesStore = newBS;
    oldBS.release();
  } catch (@NotNull IOException | IllegalStateException | IllegalArgumentException e) {
    @NotNull BufferOverflowException boe = new BufferOverflowException();
    boe.initCause(e);
    throw boe;
  }
  if (set) {
    if (writeLimit() < readPosition)
      writeLimit(readPosition);
    if (readLimit() < readPosition)
      readLimit(readPosition);
    readPosition = offset;
  }
}
origin: net.openhft/chronicle-bytes

@NotNull
@Override
public Bytes<Void> readPositionRemaining(long position, long remaining) throws BufferUnderflowException {
  long limit = position + remaining;
  acquireNextByteStore(position, true);
  if (writeLimit < limit)
    writeLimit(limit);
  boolean debug = false;
  assert debug = true;
  if (debug)
    readLimit(limit);
  else
    uncheckedWritePosition(limit);
  return readPosition(position);
}
origin: net.openhft/chronicle-queue

mappedBytes.writeLimit(mappedBytes.realCapacity());
mappedBytes.writePosition(mappedBytes.readPosition());
long pos = recovery.writeHeader(mappedWire, safeLength, timeoutMS, null, null);
net.openhft.chronicle.bytesMappedByteswriteLimit

Popular methods of MappedBytes

  • mappedBytes
  • addressForWrite
  • readLimit
  • readPosition
  • release
  • reserve
  • writePosition
  • writeSkip
  • mappedFile
  • readRemaining
  • realCapacity
  • start
  • realCapacity,
  • start,
  • writeLong,
  • <init>,
  • acquireNextByteStore,
  • acquireNextByteStore0,
  • append8bit0,
  • appendUtf8,
  • bytesStore

Popular in Java

  • Start an intent from android
  • addToBackStack (FragmentTransaction)
  • scheduleAtFixedRate (Timer)
  • runOnUiThread (Activity)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Best IntelliJ 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