Package org.apache.bookkeeper.client
Class SyncCounter
- java.lang.Object
-
- org.apache.bookkeeper.client.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()
-
-
-
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()
-
-