Tabnine Logo
OpReadEntry.create
Code IndexAdd Tabnine to your IDE (free)

How to use
create
method
in
org.apache.bookkeeper.mledger.impl.OpReadEntry

Best Java code snippets using org.apache.bookkeeper.mledger.impl.OpReadEntry.create (Showing top 7 results out of 315)

origin: apache/pulsar

@Override
public void asyncReadEntries(final int numberOfEntriesToRead, final ReadEntriesCallback callback,
    final Object ctx) {
  checkArgument(numberOfEntriesToRead > 0);
  if (STATE_UPDATER.get(this) == State.Closed) {
    callback.readEntriesFailed(new ManagedLedgerException("Cursor was already closed"), ctx);
    return;
  }
  PENDING_READ_OPS_UPDATER.incrementAndGet(this);
  OpReadEntry op = OpReadEntry.create(this, PositionImpl.get(readPosition), numberOfEntriesToRead, callback, ctx);
  ledger.asyncReadEntries(op);
}
origin: apache/pulsar

OpReadEntry op = OpReadEntry.create(this, PositionImpl.get(readPosition), numberOfEntriesToRead, callback,
    ctx);
origin: apache/pulsar

PositionImpl readPositionRef = PositionImpl.earliest;
ManagedCursorImpl cursor = new ManagedCursorImpl(bk, config, ledger, "cursor1");
OpReadEntry opReadEntry = OpReadEntry.create(cursor, readPositionRef, 1, new ReadEntriesCallback() {
origin: org.apache.pulsar/managed-ledger-original

@Override
public void asyncReadEntries(final int numberOfEntriesToRead, final ReadEntriesCallback callback,
    final Object ctx) {
  checkArgument(numberOfEntriesToRead > 0);
  if (STATE_UPDATER.get(this) == State.Closed) {
    callback.readEntriesFailed(new ManagedLedgerException("Cursor was already closed"), ctx);
    return;
  }
  PENDING_READ_OPS_UPDATER.incrementAndGet(this);
  OpReadEntry op = OpReadEntry.create(this, PositionImpl.get(readPosition), numberOfEntriesToRead, callback, ctx);
  ledger.asyncReadEntries(op);
}
origin: com.yahoo.pulsar/managed-ledger

@Override
public void asyncReadEntries(final int numberOfEntriesToRead, final ReadEntriesCallback callback,
    final Object ctx) {
  checkArgument(numberOfEntriesToRead > 0);
  if (STATE_UPDATER.get(this) == State.Closed) {
    callback.readEntriesFailed(new ManagedLedgerException("Cursor was already closed"), ctx);
    return;
  }
  PENDING_READ_OPS_UPDATER.incrementAndGet(this);
  OpReadEntry op = OpReadEntry.create(this, PositionImpl.get(readPosition), numberOfEntriesToRead, callback, ctx);
  ledger.asyncReadEntries(op);
}
origin: com.yahoo.pulsar/managed-ledger

OpReadEntry op = OpReadEntry.create(this, PositionImpl.get(readPosition), numberOfEntriesToRead, callback,
    ctx);
origin: org.apache.pulsar/managed-ledger-original

OpReadEntry op = OpReadEntry.create(this, PositionImpl.get(readPosition), numberOfEntriesToRead, callback,
    ctx);
org.apache.bookkeeper.mledger.implOpReadEntrycreate

Popular methods of OpReadEntry

  • <init>
  • checkReadCompletion
  • getNumberOfEntriesToRead
  • readEntriesFailed
  • recycle
  • updateReadPosition

Popular in Java

  • Reactive rest calls using spring rest template
  • setContentView (Activity)
  • setRequestProperty (URLConnection)
  • getSystemService (Context)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Table (org.hibernate.mapping)
    A relational table
  • Top plugins for Android Studio
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