Ejemplo n.º 1
0
 /**
  * * 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();
 }
Ejemplo n.º 2
0
 public void setEventResult(Object eventResultValue) {
   if (resultEvent != null) resultEvent.send(eventResultValue);
   else logger.error("eventMessage:{} is null.", eventSource.getClass());
 }
Ejemplo n.º 3
0
 /**
  * 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);
 }