Codota Logo
MLDataFormats$ManagedLedgerInfo$LedgerInfo$Builder.setEntries
Code IndexAdd Codota to your IDE (free)

How to use
setEntries
method
in
org.apache.bookkeeper.mledger.proto.MLDataFormats$ManagedLedgerInfo$LedgerInfo$Builder

Best Java code snippets using org.apache.bookkeeper.mledger.proto.MLDataFormats$ManagedLedgerInfo$LedgerInfo$Builder.setEntries (Showing top 12 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: apache/pulsar

readHandle.readLastAddConfirmedAsync().thenAccept(lastAddConfirmed -> {
  LedgerInfo info = LedgerInfo.newBuilder().setLedgerId(lastLedgerId)
      .setEntries(lastAddConfirmed + 1).setSize(readHandle.getLength())
      .setTimestamp(clock.millis()).build();
  ledgers.put(lastLedgerId, info);
        .setEntries(0).setSize(0).setTimestamp(clock.millis()).build();
    ledgers.put(lastLedgerId, info);
    future.complete(createReadOnlyCursor(startPosition));
    && ex.getCause() instanceof ArrayIndexOutOfBoundsException) {
  LedgerInfo info = LedgerInfo.newBuilder().setLedgerId(lastLedgerId).setEntries(0)
      .setSize(0).setTimestamp(clock.millis()).build();
  ledgers.put(lastLedgerId, info);
origin: apache/pulsar

    .setEntries(lh.getLastAddConfirmed() + 1).setSize(lh.getLength())
    .setTimestamp(clock.millis()).build();
ledgers.put(id, info);
origin: apache/pulsar

LedgerInfo info = LedgerInfo.newBuilder().setLedgerId(lh.getId()).setEntries(entriesInLedger)
    .setSize(lh.getLength()).setTimestamp(clock.millis()).build();
ledgers.put(lh.getId(), info);
origin: apache/pulsar

public Builder mergeFrom(org.apache.bookkeeper.mledger.proto.MLDataFormats.ManagedLedgerInfo.LedgerInfo other) {
 if (other == org.apache.bookkeeper.mledger.proto.MLDataFormats.ManagedLedgerInfo.LedgerInfo.getDefaultInstance()) return this;
 if (other.hasLedgerId()) {
  setLedgerId(other.getLedgerId());
 }
 if (other.hasEntries()) {
  setEntries(other.getEntries());
 }
 if (other.hasSize()) {
  setSize(other.getSize());
 }
 if (other.hasTimestamp()) {
  setTimestamp(other.getTimestamp());
 }
 if (other.hasOffloadContext()) {
  mergeOffloadContext(other.getOffloadContext());
 }
 this.mergeUnknownFields(other.unknownFields);
 onChanged();
 return this;
}
origin: com.yahoo.pulsar/managed-ledger

public Builder mergeFrom(org.apache.bookkeeper.mledger.proto.MLDataFormats.ManagedLedgerInfo.LedgerInfo other) {
 if (other == org.apache.bookkeeper.mledger.proto.MLDataFormats.ManagedLedgerInfo.LedgerInfo.getDefaultInstance()) return this;
 if (other.hasLedgerId()) {
  setLedgerId(other.getLedgerId());
 }
 if (other.hasEntries()) {
  setEntries(other.getEntries());
 }
 if (other.hasSize()) {
  setSize(other.getSize());
 }
 if (other.hasTimestamp()) {
  setTimestamp(other.getTimestamp());
 }
 this.mergeUnknownFields(other.getUnknownFields());
 return this;
}

origin: apache/pulsar

Map<Long, LedgerInfo> ledgers = (Map<Long,LedgerInfo>)ledgersField.get(ledger);
ledgers.put(secondLedgerId,
      ledgers.get(secondLedgerId).toBuilder().setEntries(0).setSize(0).build());
origin: com.yahoo.pulsar/managed-ledger

LedgerInfo info = LedgerInfo.newBuilder().setLedgerId(lh.getId()).setEntries(entriesInLedger)
    .setSize(lh.getLength()).setTimestamp(System.currentTimeMillis()).build();
ledgers.put(lh.getId(), info);
origin: org.apache.pulsar/managed-ledger-original

LedgerInfo info = LedgerInfo.newBuilder().setLedgerId(lh.getId()).setEntries(entriesInLedger)
    .setSize(lh.getLength()).setTimestamp(clock.millis()).build();
ledgers.put(lh.getId(), info);
origin: com.yahoo.pulsar/managed-ledger

    .setEntries(lh.getLastAddConfirmed() + 1).setSize(lh.getLength())
    .setTimestamp(System.currentTimeMillis()).build();
ledgers.put(id, info);
origin: org.apache.pulsar/managed-ledger-original

    .setEntries(lh.getLastAddConfirmed() + 1).setSize(lh.getLength())
    .setTimestamp(clock.millis()).build();
ledgers.put(id, info);
origin: org.apache.pulsar/managed-ledger-original

readHandle.readLastAddConfirmedAsync().thenAccept(lastAddConfirmed -> {
  LedgerInfo info = LedgerInfo.newBuilder().setLedgerId(lastLedgerId)
      .setEntries(lastAddConfirmed + 1).setSize(readHandle.getLength())
      .setTimestamp(clock.millis()).build();
  ledgers.put(lastLedgerId, info);
        .setEntries(0).setSize(0).setTimestamp(clock.millis()).build();
    ledgers.put(lastLedgerId, info);
    future.complete(createReadOnlyCursor(startPosition));
    && ex.getCause() instanceof ArrayIndexOutOfBoundsException) {
  LedgerInfo info = LedgerInfo.newBuilder().setLedgerId(lastLedgerId).setEntries(0)
      .setSize(0).setTimestamp(clock.millis()).build();
  ledgers.put(lastLedgerId, info);
origin: org.apache.pulsar/managed-ledger-original

public Builder mergeFrom(org.apache.bookkeeper.mledger.proto.MLDataFormats.ManagedLedgerInfo.LedgerInfo other) {
 if (other == org.apache.bookkeeper.mledger.proto.MLDataFormats.ManagedLedgerInfo.LedgerInfo.getDefaultInstance()) return this;
 if (other.hasLedgerId()) {
  setLedgerId(other.getLedgerId());
 }
 if (other.hasEntries()) {
  setEntries(other.getEntries());
 }
 if (other.hasSize()) {
  setSize(other.getSize());
 }
 if (other.hasTimestamp()) {
  setTimestamp(other.getTimestamp());
 }
 if (other.hasOffloadContext()) {
  mergeOffloadContext(other.getOffloadContext());
 }
 this.mergeUnknownFields(other.unknownFields);
 onChanged();
 return this;
}
org.apache.bookkeeper.mledger.protoMLDataFormats$ManagedLedgerInfo$LedgerInfo$BuildersetEntries

Javadoc

optional int64 entries = 2;

Popular methods of MLDataFormats$ManagedLedgerInfo$LedgerInfo$Builder

  • build
  • mergeFrom
  • setLedgerId
    required int64 ledgerId = 1;
  • setSize
    optional int64 size = 3;
  • <init>
  • buildPartial
  • hasLedgerId
    required int64 ledgerId = 1;
  • maybeForceBuilderInitialization
  • mergeUnknownFields
  • newUninitializedMessageException
  • onBuilt
  • onChanged
  • onBuilt,
  • onChanged,
  • setTimestamp,
  • clearTimestamp,
  • create,
  • getOffloadContext,
  • getOffloadContextBuilder,
  • getOffloadContextFieldBuilder,
  • getParentForChildren

Popular in Java

  • Reading from database using SQL prepared statement
  • putExtra (Intent)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
  • Join (org.hibernate.mapping)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now