com.saxonica.extra
Class SequenceExchanger.Producer
java.lang.Object
com.saxonica.extra.SequenceExchanger.Producer
- All Implemented Interfaces:
- Runnable
- Direct Known Subclasses:
- SequenceExchanger.EvaluationThread
- Enclosing class:
- SequenceExchanger
public abstract static class SequenceExchanger.Producer
- extends Object
- implements Runnable
The class Producer represents the thread that pushes items onto the Conduit. The only
special requirement for this thread is that it must be clonable using the getAnother() method.
Method Summary |
abstract SequenceExchanger.Producer |
getAnother(com.saxonica.extra.Conduit conduit)
Get a copy of this Producer, initialized to produce the same sequence of items as the original,
but starting from the beginning (not from the current position). |
Methods inherited from interface java.lang.Runnable |
run |
SequenceExchanger.Producer
public SequenceExchanger.Producer()
- Default constructor
getAnother
public abstract SequenceExchanger.Producer getAnother(com.saxonica.extra.Conduit conduit)
- Get a copy of this Producer, initialized to produce the same sequence of items as the original,
but starting from the beginning (not from the current position).
- Parameters:
conduit
- the conduit to which the items are written
- Returns:
- the new copy
Copyright (C) Michael H. Kay. All rights reserved.