Package org.apache.bookkeeper.client
Class SyncCounter
- java.lang.Object
-
- org.apache.bookkeeper.client.SyncCounter
-
class SyncCounter extends java.lang.ObjectImplements objects to help with the synchronization of asynchronous calls.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) inti(package private) LedgerHandlelh(package private) intrc(package private) java.util.Enumeration<LedgerEntry>seq(package private) inttotal
-
Constructor Summary
Constructors Constructor Description SyncCounter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidblock(int limit)(package private) voiddec()(package private) LedgerHandlegetLh()(package private) intgetrc()(package private) java.util.Enumeration<LedgerEntry>getSequence()(package private) voidinc()(package private) voidsetLh(LedgerHandle lh)(package private) voidsetrc(int rc)(package private) voidsetSequence(java.util.Enumeration<LedgerEntry> seq)(package private) inttotal()
-
-
-
Field Detail
-
i
int i
-
rc
int rc
-
total
int total
-
seq
java.util.Enumeration<LedgerEntry> seq
-
lh
LedgerHandle lh
-
-
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()
-
setLh
void setLh(LedgerHandle lh)
-
getLh
LedgerHandle getLh()
-
-