/** * Get the minimum lease time. * @param platform The (local) platform. * @return The minimum leasetime. */ public static long getMinLeaseTime(IComponentIdentifier platform) { return Starter.getScaledRemoteDefaultTimeout(platform, 1.0/6); }
/** * Create a new connection handler. */ public AbstractConnectionHandler(MessageService ms, Map<String, Object> nonfunc) { // Use timeouts relative to deftimeout this(ms, nonfunc, 3, Starter.getScaledRemoteDefaultTimeout(ms.getComponent().getComponentIdentifier(), 1.0/3), Starter.getScaledRemoteDefaultTimeout(ms.getComponent().getComponentIdentifier(), 1.0/2)); }