Class SyncCounter


  • class SyncCounter
    extends java.lang.Object
    Implements objects to help with the synchronization of asynchronous calls.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int i  
      (package private) LedgerHandle lh  
      (package private) int rc  
      (package private) java.util.Enumeration<LedgerEntry> seq  
      (package private) int total  
    • Constructor Summary

      Constructors 
      Constructor Description
      SyncCounter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void block​(int limit)  
      (package private) void dec()  
      (package private) LedgerHandle getLh()  
      (package private) int getrc()  
      (package private) java.util.Enumeration<LedgerEntry> getSequence()  
      (package private) void inc()  
      (package private) void setLh​(LedgerHandle lh)  
      (package private) void setrc​(int rc)  
      (package private) void setSequence​(java.util.Enumeration<LedgerEntry> seq)  
      (package private) int total()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SyncCounter

        SyncCounter()
    • Method Detail

      • inc

        void inc()
      • dec

        void dec()
      • block

        void block​(int limit)
            throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • total

        int total()
      • setrc

        void setrc​(int rc)
      • getrc

        int getrc()
      • setSequence

        void setSequence​(java.util.Enumeration<LedgerEntry> seq)
      • getSequence

        java.util.Enumeration<LedgerEntry> getSequence()