public void newResult(UniformPair<EventBean[]> results) { if ((ExecutionPathDebugLog.isDebugEnabled) && (log.isDebugEnabled())) { ViewSupport.dumpUpdateParams(".update for view " + this, results); } statementResultServiceImpl.indicate(results); if (!isDispatchWaiting.get()) { dispatchService.addExternal(this); isDispatchWaiting.set(true); } }
/** * Convenience method for logging the parameters passed to the update method. Only logs if debug is enabled. * @param prefix is a prefix text to output for each line * @param result is the data in an update call */ public static void dumpUpdateParams(String prefix, UniformPair<EventBean[]> result) { EventBean[] newEventArr = result != null ? result.getFirst() : null; EventBean[] oldEventArr = result != null ? result.getSecond() : null; dumpUpdateParams(prefix, newEventArr, oldEventArr); }
public void newResult(UniformPair<EventBean[]> result) { if ((ExecutionPathDebugLog.isDebugEnabled) && (log.isDebugEnabled())) { ViewSupport.dumpUpdateParams(".update for view " + this, result); } statementResultServiceImpl.indicate(result); if (!isDispatchWaiting.get()) { UpdateDispatchFutureSpin nextFutureSpin; synchronized(this) { nextFutureSpin = new UpdateDispatchFutureSpin(this, currentFutureSpin, msecTimeout, timeSourceService); currentFutureSpin = nextFutureSpin; } dispatchService.addExternal(nextFutureSpin); isDispatchWaiting.set(true); } }
public void newResult(UniformPair<EventBean[]> results) { if ((ExecutionPathDebugLog.isDebugEnabled) && (log.isDebugEnabled())) { ViewSupport.dumpUpdateParams(".update for view " + this, results); } statementResultServiceImpl.indicate(results); if (!isDispatchWaiting.get()) { UpdateDispatchFutureWait nextFutureWait; synchronized(this) { nextFutureWait = new UpdateDispatchFutureWait(this, currentFutureWait, msecTimeout); currentFutureWait.setLater(nextFutureWait); currentFutureWait = nextFutureWait; } dispatchService.addExternal(nextFutureWait); isDispatchWaiting.set(true); } }
ViewSupport.dumpUpdateParams(".execute", events);