/** * * Blocking until get a Event Result * * @return */ public Object getBlockEventResult() { if (resultEvent == null) { logger.error("eventMessage:{} is null.", eventSource.getClass()); return null; } else return resultEvent.getBlockedValue(); }
public void setEventResult(Object eventResultValue) { if (resultEvent != null) resultEvent.send(eventResultValue); else logger.error("eventMessage:{} is null.", eventSource.getClass()); }
/** * get a Event Result until time out value * * @return Event Result */ public Object getEventResult() { if (resultEvent == null) { logger.error("eventMessage:{} is null.", eventSource.getClass()); return null; } else return resultEvent.get(timeoutForReturnResult); }