/* (non-Javadoc) * @see org.zkoss.monitor.message.MessageHandler#handle(org.zkoss.monitor.message.Message, boolean) */ public Message handle(Message request, boolean hasCallback) throws Exception { MessageEvent<Message> mEvent = new MessageEvent<Message>(request, hasCallback); dispatcher.send(mEvent); if (hasCallback) return mEvent.getResponse(); return null; }
/** @param evtListener */ public void removeMessageEventListener(Object evtListener) { dispatcher.unlisten(evtListener); }
/** @param evtListener */ public void addMessageEventListener(Object evtListener) { dispatcher.listen(evtListener); }