public void setPublisher(StreamJunction.Publisher publisher) {
        this.outputPublisher = publisher;
    }
Set Publisher to which the the output events from internal window have to be sent.

@param publisher output publisher
modules/siddhi-core/src/main/java/io/siddhi/core/window/Window.java