/** * Get the realtime flag. * @return True, if the timeout is a real time (i.e. system time) * instead of platform time. */ public boolean isRealtime() { return getRealtime().booleanValue(); }
/** * Get the realtime flag. * @return True, if the timeout is a real time (i.e. system time) * instead of platform time. */ public boolean isRealtime() { return getRealtime().booleanValue(); }
/** * Automatically update the timer of a long running service call future. * Ensures that the caller does not timeout even if no result * value is set in that time span. * The call periodically sends alive calls to the caller. * @param ret The future that is returned by the service call. * @param ia The component handling the service call (on that component the periodic updates are scheduled). */ public static void avoidCallTimeouts(final Future<?> ret, IInternalAccess ia) { ServiceCall sc = ServiceCall.getCurrentInvocation(); long to = sc!=null? sc.getTimeout(): BasicService.getLocalDefaultTimeout(); // Hack!!! find out in which cases service call can null boolean realtime = sc!=null ? sc.getRealtime()!=null ? sc.getRealtime().booleanValue() : false : false; // boolean local = sc.getCaller().getPlatformName().equals(agent.getComponentIdentifier().getPlatformName()); // long to = sc.getTimeout()>0? sc.getTimeout(): (local? BasicService.DEFAULT_LOCAL: BasicService.DEFAULT_REMOTE); // to = 5000; avoidCallTimeouts(ret, ia, to, realtime); }
/** * Automatically update the timer of a long running service call future. * Ensures that the caller does not timeout even if no result * value is set in that timespan. * The call periodically sends alive calls to the caller. * @param ret The future that is returned by the service call. * @param ea The component handling the service call (on that component the periodic updates are scheduled). */ public static void avoidCallTimeouts(final Future<?> ret, IExternalAccess ea) { ServiceCall sc = ServiceCall.getCurrentInvocation(); long to = sc!=null? sc.getTimeout(): BasicService.getLocalDefaultTimeout(); // Hack!!! find out in which cases service call can null boolean realtime = sc!=null ? sc.getRealtime()!=null ? sc.getRealtime().booleanValue() : false : false; // boolean local = sc.getCaller().getPlatformName().equals(agent.getComponentIdentifier().getPlatformName()); // long to = sc.getTimeout()>0? sc.getTimeout(): (local? BasicService.DEFAULT_LOCAL: BasicService.DEFAULT_REMOTE); // to = 5000; avoidCallTimeouts(ret, ea, to, realtime); }
/** * Automatically update the timer of a long running service call future. * Ensures that the caller does not timeout even if no result * value is set in that time span. * The call periodically sends alive calls to the caller. * @param ret The future that is returned by the service call. * @param ia The component handling the service call (on that component the periodic updates are scheduled). */ public static void avoidCallTimeouts(final Future<?> ret, IInternalAccess ia) { ServiceCall sc = ServiceCall.getCurrentInvocation(); long to = sc!=null? sc.getTimeout(): Starter.getLocalDefaultTimeout(ia.getComponentIdentifier()); // Hack!!! find out in which cases service call can null boolean realtime = sc!=null ? sc.getRealtime()!=null ? sc.getRealtime().booleanValue() : false : false; // boolean local = sc.getCaller().getPlatformName().equals(agent.getComponentIdentifier().getPlatformName()); // long to = sc.getTimeout()>0? sc.getTimeout(): (local? BasicService.DEFAULT_LOCAL: BasicService.DEFAULT_REMOTE); // to = 5000; avoidCallTimeouts(ret, ia, to, realtime); }
/** * Automatically update the timer of a long running service call future. * Ensures that the caller does not timeout even if no result * value is set in that timespan. * The call periodically sends alive calls to the caller. * @param ret The future that is returned by the service call. * @param ea The component handling the service call (on that component the periodic updates are scheduled). */ public static void avoidCallTimeouts(final Future<?> ret, IExternalAccess ea) { ServiceCall sc = ServiceCall.getCurrentInvocation(); long to = sc!=null? sc.getTimeout(): Starter.getLocalDefaultTimeout(ea.getComponentIdentifier()); // Hack!!! find out in which cases service call can null boolean realtime = sc!=null ? sc.getRealtime()!=null ? sc.getRealtime().booleanValue() : false : false; // boolean local = sc.getCaller().getPlatformName().equals(agent.getComponentIdentifier().getPlatformName()); // long to = sc.getTimeout()>0? sc.getTimeout(): (local? BasicService.DEFAULT_LOCAL: BasicService.DEFAULT_REMOTE); // to = 5000; avoidCallTimeouts(ret, ea, to, realtime); }
boolean realtime = sic.getServiceCall().getRealtime();
boolean realtime = sic.getNextServiceCall().getRealtime();