Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.saxonica.extra
Class SequenceExchanger

    java.lang.Object
      com.saxonica.extra.SequenceExchanger

public class SequenceExchanger
extends java.lang.Object

This class enables one thread to produce a sequence of items, and another thread to read the sequence of items, 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
`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
`SequenceExchanger()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### SequenceExchanger

    public SequenceExchanger()

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD