org.jgroups.util
Class RingBufferLockless.RingBufferIterator<T>

java.lang.Object
  extended by org.jgroups.util.RingBufferLockless.RingBufferIterator<T>
All Implemented Interfaces:
java.util.Iterator<T>
Enclosing class:
RingBufferLockless<T>

protected class RingBufferLockless.RingBufferIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>


Field Summary
protected  java.util.concurrent.atomic.AtomicReferenceArray<T> buffer
           
protected  long current
           
 
Constructor Summary
RingBufferLockless.RingBufferIterator(java.util.concurrent.atomic.AtomicReferenceArray<T> buffer)
           
 
Method Summary
 boolean hasNext()
           
 T next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buffer

protected final java.util.concurrent.atomic.AtomicReferenceArray<T> buffer

current

protected long current
Constructor Detail

RingBufferLockless.RingBufferIterator

public RingBufferLockless.RingBufferIterator(java.util.concurrent.atomic.AtomicReferenceArray<T> buffer)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<T>

next

public T next()
Specified by:
next in interface java.util.Iterator<T>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<T>


Copyright © 1998-2012 Bela Ban / Red Hat. All Rights Reserved.