|Modifier and Type||Method and Description|
Signal all components that want to be notified that the pointer has advanced.
Wait for the given position to be available.
long waitFor(long position, Pointer pointer, Pointer dependentPointer, PointerBarrier barrier) throws InterruptedException, TimeoutException
WaitStrategy. A common use for this is to signal a timeout.
position- the desired position
pointer- the main pointer from ringbuffer. Wait/notify strategies will need this as it's the only sequence that is also notified upon update.
dependentPointer- on which to wait.
barrier- the processor is waiting on.
InterruptedException- if the thread is interrupted.
TimeoutException- if this blocking method times out
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.