Class TransientLedgerInfo

  • All Implemented Interfaces:
    java.lang.AutoCloseable, Recyclable

    class TransientLedgerInfo
    extends Watchable<LastAddConfirmedUpdateNotification>
    implements java.lang.AutoCloseable
    This class borrows the logic from FileInfo.

    This class is used for holding all the transient states for a given ledger.

    • Constructor Detail

      • TransientLedgerInfo

        public TransientLedgerInfo​(long ledgerId,
                                   LedgerMetadataIndex ledgerIndex)
        Construct an Watchable with zero watchers.
    • Method Detail

      • getLastAddConfirmed

        long getLastAddConfirmed()
      • setLastAddConfirmed

        long setLastAddConfirmed​(long lac)
      • getExplicitLac

        public io.netty.buffer.ByteBuf getExplicitLac()
      • setExplicitLac

        public void setExplicitLac​(io.netty.buffer.ByteBuf lac)
      • isStale

        boolean isStale()
      • notifyWatchers

        void notifyWatchers​(long lastAddConfirmed)
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable