public interface WaitStrategy
Pointer
to make the supplied position available.Modifier and Type | Method and Description |
---|---|
void |
signalAllWhenBlocking()
Signal all components that want to be notified that the pointer has advanced.
|
long |
waitFor(long position,
Pointer pointer,
Pointer dependentPointer,
PointerBarrier barrier)
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 positionpointer
- 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 outvoid signalAllWhenBlocking()
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.