org.apache.sling.event
Interface JobsIterator

All Superinterfaces:
Iterable<org.osgi.service.event.Event>, Iterator<org.osgi.service.event.Event>, JobsIterator

Deprecated.

@Deprecated
public interface JobsIterator
extends JobsIterator

This Iterator allows to iterate over Events. In addition to an iterator it might return the number of elements in the collection and allows to skip several elements. If the iterator is not used to iterate through the whole collection of jobs, the close() method must be called in order to free resources!


Method Summary
 void close()
          Deprecated. Releases this iterators resources immediately instead of waiting for this to happen when it is automatically closed.
 
Methods inherited from interface org.apache.sling.event.jobs.JobsIterator
getPosition, getSize, skip
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

close

void close()
Deprecated. 
Releases this iterators resources immediately instead of waiting for this to happen when it is automatically closed. After a call to close, this iterator should not be used anymore. The iterator is closed automatically when it reaches it's end.



Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.