@ProviderType public interface CommandStream
This interface defines a stream to which
Commands are pushed during the compilation of a HTL script by the
SightlyCompiler. Depending on how a consumer wants to use the stream there are several
CommandHandlercan be attached to the stream; the stream, in turn, will notify the handler for every command that has been pushed;
CommandHandler, as the
Commands that were written to the stream can be replayed in the exact order in which they have been pushed.
void addHandler(CommandHandler handler)
CommandHandlerto the stream. The
CommandHandlerwill be notified for every new
Commandpushed to this stream.
handler- the handler to attach to this stream
Copyright © 2017 The Apache Software Foundation. All rights reserved.