public class KernelSupport extends java.lang.Object
|Constructor and Description|
|Modifier and Type||Method and Description|
This function infinitely blocks until all Feature references are removed by the Kernel.
public static boolean stopFeature(Feature f, long timeout)
Feature.stop()may result to
STOPPEDstate when there are remaining references from Kernel to the Feature being killed. Wadapps API does not provide this intermediate step (the
STOPPEDstate is not a Wadapps state). This function blocks until all Feature references are removed by the Kernel (i.e. wait until pumps have finished their current job, ...) or the timeout occurs.
f- the feature to stop.
timeout- the maximum time to wait in milliseconds.
public static void stopFeature(Feature f)