K
- The generic type of the user-defined key.public class KVOLatch extends Latch
KVOC
has been successfully written onto an index by an asynchronous
write operation. This class may also be used as a synchronization aid
independent of a KVOC
Since it is possible that the counter could be transiently zero as chunks are
being added and drained concurrently, you MUST increment
the
counter before adding the first chunk and decrement
the
counter after adding the last chunk. Threads may invoke Latch.await()
any
time after the counter has been incremented. They will not be released until
the counter is zero. If you have protected against transient zeros by
pre-incrementing the counter, the threads will not be released until the
asynchronous write operations are successfully completed.
The notification is based on KVOC
, which associates an atomic counter
and a user-defined key with each tuple. Notices are generated when the atomic
counter is zero on decrement. Notices are aligned with the appropriate scope
by creating an instance of the KVOScope
with that scope and then
pairing it with each KVOC
.
KVOC
,
IndexPartitionWriteTask, which is responsible for invoking
{@link #dec()}.
Constructor and Description |
---|
KVOLatch() |
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.