org.gcube.data.spd.plugin.fwk.readers
Class AbstractLocalReader<T>

java.lang.Object
  extended by org.gcube.data.spd.plugin.fwk.readers.AbstractLocalReader<T>
All Implemented Interfaces:
Iterator<T>, org.gcube.data.streams.Stream<T>
Direct Known Subclasses:
LocalReader

public abstract class AbstractLocalReader<T>
extends Object
implements org.gcube.data.streams.Stream<T>


Field Summary
protected  T element
           
protected static org.slf4j.Logger logger
           
protected  BlockingQueue<T> queue
           
protected  int timeoutInSeconds
           
 
Constructor Summary
AbstractLocalReader(AbstractLocalWrapper<T> wrapper)
           
 
Method Summary
 T next()
           
 void remove()
           
 void setTimeoutInSeconds(int timeoutInSeconds)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.gcube.data.streams.Stream
close, hasNext, isClosed, locator
 

Field Detail

logger

protected static final org.slf4j.Logger logger

queue

protected BlockingQueue<T> queue

element

protected T element

timeoutInSeconds

protected int timeoutInSeconds
Constructor Detail

AbstractLocalReader

public AbstractLocalReader(AbstractLocalWrapper<T> wrapper)
Method Detail

setTimeoutInSeconds

public void setTimeoutInSeconds(int timeoutInSeconds)

next

public T next()
Specified by:
next in interface Iterator<T>
Specified by:
next in interface org.gcube.data.streams.Stream<T>

remove

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


Copyright © 2013. All Rights Reserved.