Package org.apache.bookkeeper.client
Class SyncCounter
java.lang.Object
org.apache.bookkeeper.client.SyncCounter
Implements objects to help with the synchronization of asynchronous calls.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int(package private) LedgerHandle(package private) int(package private) Enumeration<LedgerEntry>(package private) int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidblock(int limit) (package private) voiddec()(package private) LedgerHandlegetLh()(package private) intgetrc()(package private) Enumeration<LedgerEntry>(package private) voidinc()(package private) voidsetLh(LedgerHandle lh) (package private) voidsetrc(int rc) (package private) void(package private) inttotal()
-
Field Details
-
i
int i -
rc
int rc -
total
int total -
seq
Enumeration<LedgerEntry> seq -
lh
LedgerHandle lh
-
-
Constructor Details
-
SyncCounter
SyncCounter()
-
-
Method Details
-
inc
void inc() -
dec
void dec() -
block
- Throws:
InterruptedException
-
total
int total() -
setrc
void setrc(int rc) -
getrc
int getrc() -
setSequence
-
getSequence
Enumeration<LedgerEntry> getSequence() -
setLh
-
getLh
LedgerHandle getLh()
-