/** * {@inheritDoc} */ @JsonIgnore public void setResultHandler(ResultHandler handler) { super.setResultHandler(handler); _context.setResultHandler(handler); }
/** * This method closes the node. * * @throws Exception Failed to close the node */ protected void close() throws Exception { for (Channel ch : _channels) { ch.close(); } _container = null; _handler = null; getEventProcessor().setResultHandler(null); getEventProcessor().close(); }
/** * This method initializes the node. * * @throws Exception Failed to initialize the node */ protected void init() throws Exception { if (getPredicate() != null) { getPredicate().init(); } if (getEventProcessor() == null) { throw new Exception("Event Processor has not been configured for node"); } getEventProcessor().init(); if (getEventProcessor().getAsynchronous()) { _handler = new NodeResultHandler(); getEventProcessor().setResultHandler(_handler); } }