Class FlowState<T>

java.lang.Object
org.aksw.jenax.sparql.query.rx.FlowState<T>
Type Parameters:
I - InputStream type
T - Item type of the resulting flow, typically Triples or Quads

public class FlowState<T> extends Object
Helper class used in RDFDataMgrEx to track resources involved in RDF parsing
Author:
raven
  • Field Details

    • in

      protected InputStream in
    • producerThread

      protected Thread producerThread
    • raisedException

      protected Throwable raisedException
    • iterator

      protected Iterator<T> iterator
    • closeInvoked

      protected volatile boolean closeInvoked
  • Constructor Details

    • FlowState

      public FlowState()
  • Method Details

    • getProducerThread

      public Thread getProducerThread()
    • setProducerThread

      public void setProducerThread(Thread thread)
    • setIn

      public void setIn(InputStream in)
    • setIterator

      public void setIterator(Iterator<T> iterator)
    • isRiotBrokenPipeException

      public static boolean isRiotBrokenPipeException(Throwable t)
    • handleProducerException

      public void handleProducerException(Thread thread, Throwable e)
    • close

      public void close() throws IOException
      Throws:
      IOException
    • interruptUntilDead

      public static void interruptUntilDead(Thread thread)