congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
MLDataFormats$PositionInfo.parseFrom
Code IndexAdd Tabnine to your IDE (free)

How to use
parseFrom
method
in
org.apache.bookkeeper.mledger.proto.MLDataFormats$PositionInfo

Best Java code snippets using org.apache.bookkeeper.mledger.proto.MLDataFormats$PositionInfo.parseFrom (Showing top 8 results out of 315)

origin: apache/pulsar

  log.debug(" Read entry {} from ledger {} for cursor {}", lastEntry, ledgerId, cursorName);
MLDataFormats.PositionInfo positionInfo = MLDataFormats.PositionInfo.parseFrom(ledgerEntry.getEntry());
lastAckedMessagePosition = new PositionImpl(positionInfo);
if (log.isDebugEnabled()) {
origin: apache/pulsar

  @Test
  public void hashes() throws Exception {
    PositionImpl p1 = new PositionImpl(5, 15);
    PositionImpl p2 = new PositionImpl(PositionInfo.parseFrom(p1.getPositionInfo().toByteArray()));
    assertEquals(p2.getLedgerId(), 5);
    assertEquals(p2.getEntryId(), 15);
    assertEquals(new PositionImpl(5, 15).hashCode(), p2.hashCode());
  }
}
origin: apache/pulsar

  LedgerEntry entry = seq.nextElement();
  PositionInfo positionInfo;
  positionInfo = PositionInfo.parseFrom(entry.getEntry());
  individualDeletedMessagesCount.set(positionInfo.getIndividualDeletedMessagesCount());
} catch (Exception e) {
origin: org.apache.pulsar/managed-ledger-original

PositionInfo positionInfo;
try {
  positionInfo = PositionInfo.parseFrom(entry.getEntry());
} catch (InvalidProtocolBufferException e) {
  callback.operationFailed(new ManagedLedgerException(e));
origin: com.yahoo.pulsar/managed-ledger

PositionInfo positionInfo;
try {
  positionInfo = PositionInfo.parseFrom(entry.getEntry());
} catch (InvalidProtocolBufferException e) {
  callback.operationFailed(new ManagedLedgerException(e));
origin: org.apache.pulsar/managed-ledger-original

  log.debug(" Read entry {} from ledger {} for cursor {}", lastEntry, ledgerId, cursorName);
MLDataFormats.PositionInfo positionInfo = MLDataFormats.PositionInfo.parseFrom(ledgerEntry.getEntry());
lastAckedMessagePosition = new PositionImpl(positionInfo);
if (log.isDebugEnabled()) {
origin: com.yahoo.pulsar/managed-ledger

  log.debug(" Read entry {} from ledger {} for cursor {}", lastEntry, ledgerId, cursorName);
MLDataFormats.PositionInfo positionInfo = MLDataFormats.PositionInfo.parseFrom(ledgerEntry.getEntry());
lastAckedMessagePosition = new PositionImpl(positionInfo);
if (log.isDebugEnabled()) {
origin: apache/pulsar

PositionInfo positionInfo;
try {
  positionInfo = PositionInfo.parseFrom(entry.getEntry());
} catch (InvalidProtocolBufferException e) {
  callback.operationFailed(new ManagedLedgerException(e));
org.apache.bookkeeper.mledger.protoMLDataFormats$PositionInfoparseFrom

Popular methods of MLDataFormats$PositionInfo

  • getIndividualDeletedMessagesCount
    repeated .MessageRange individualDeletedMessages = 3;
  • toByteArray
  • <init>
  • getDefaultInstance
  • getDescriptor
  • getEntryId
    required int64 entryId = 2;
  • getIndividualDeletedMessages
    repeated .MessageRange individualDeletedMessages = 3;
  • getIndividualDeletedMessagesList
    repeated .MessageRange individualDeletedMessages = 3;
  • getLedgerId
    required int64 ledgerId = 1;
  • hasEntryId
    required int64 entryId = 2;
  • hasLedgerId
    required int64 ledgerId = 1;
  • isInitialized
  • hasLedgerId,
  • isInitialized,
  • newBuilder,
  • getProperties,
  • getPropertiesCount,
  • getPropertiesList,
  • getSerializedSize,
  • getUnknownFields,
  • makeExtensionsImmutable

Popular in Java

  • Making http requests using okhttp
  • getSharedPreferences (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JLabel (javax.swing)
  • Top plugins for WebStorm
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