Class ExtractionContextBlocker

  • All Implemented Interfaces:
    AutoCloseable, TripleHandler

    public class ExtractionContextBlocker
    extends Object
    implements TripleHandler
    A wrapper around a TripleHandler that can block and unblock calls to the handler, either for the entire document, or for individual ExtractionContexts. A document is initially blocked and must be explicitly unblocked. Contexts are initially unblocked and must be explicitly blocked. Unblocking a document unblocks all contexts as well. This class it thread-safe.
    Richard Cyganiak (