com.saxonica.stream

## Class SequenceExchanger

- java.lang.Object
- - com.saxonica.stream.SequenceExchanger

-     public class SequenceExchanger
      extends Object

  This class enables one thread to produce a sequence of items in push mode, and another thread to read the sequence of items in pull mode, using a producer/consumer model. The class itself is abstract: it's just a wrapper around a collection of static inner classes.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `SequenceExchanger.Consumer` The Consumer is a SequenceIterator that reads a sequence of items from the Conduit: that is, it allows its caller to make a sequence of calls on next(), each of which will return the next item pushed onto the Conduit by the corresponding Producer.
    `static class` | `SequenceExchanger.EvaluationThread` EvaluationThread is a producer that evaluates an expression in "push" mode, writing the results to a Conduit.
    `static class` | `SequenceExchanger.Producer` The class Producer represents the thread that pushes items onto the Conduit.
    `static class` | `SequenceExchanger.SequencePusher` A SequenceReceiver that accepts a sequence of events and writes them to a Conduit

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `SequenceExchanger()`

  - ### Method Summary

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SequenceExchanger

          public SequenceExchanger()

Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.