congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
MLDataFormats$ManagedLedgerInfo$LedgerInfo$Builder.setSize
Code IndexAdd Tabnine to your IDE (free)

How to use
setSize
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.setSize (Showing top 12 results out of 315)

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));
      .setSize(0).setTimestamp(clock.millis()).build();
  ledgers.put(lastLedgerId, info);
  future.complete(createReadOnlyCursor(startPosition));
origin: apache/pulsar

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

      .setSize(lh.getLength()).setTimestamp(clock.millis()).build();
  ledgers.put(lh.getId(), info);
} else {
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));
      .setSize(0).setTimestamp(clock.millis()).build();
  ledgers.put(lastLedgerId, info);
  future.complete(createReadOnlyCursor(startPosition));
origin: org.apache.pulsar/managed-ledger-original

    .setEntries(lh.getLastAddConfirmed() + 1).setSize(lh.getLength())
    .setTimestamp(clock.millis()).build();
ledgers.put(id, 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

      .setSize(lh.getLength()).setTimestamp(clock.millis()).build();
  ledgers.put(lh.getId(), info);
} else {
origin: com.yahoo.pulsar/managed-ledger

      .setSize(lh.getLength()).setTimestamp(System.currentTimeMillis()).build();
  ledgers.put(lh.getId(), info);
} else {
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;
}
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: 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;
}
org.apache.bookkeeper.mledger.protoMLDataFormats$ManagedLedgerInfo$LedgerInfo$BuildersetSize

Javadoc

optional int64 size = 3;

Popular methods of MLDataFormats$ManagedLedgerInfo$LedgerInfo$Builder

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • compareTo (BigDecimal)
  • requestLocationUpdates (LocationManager)
  • onRequestPermissionsResult (Fragment)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • From CI to AI: The AI layer in your organization
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