Package com.microej.kf.util
Class KernelSupport
- java.lang.Object
-
- com.microej.kf.util.KernelSupport
-
public class KernelSupport extends java.lang.ObjectUtility functions on top ofKFlibrary.
-
-
Constructor Summary
Constructors Constructor Description KernelSupport()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Tclone(T source, ej.kf.Feature cloneOwner)static voidstopFeature(ej.kf.Feature f)This function infinitely blocks until all Feature references are removed by the Kernel.static booleanstopFeature(ej.kf.Feature f, long timeout)KF-1.3 spec:Feature.stop()may result toSTOPPEDstate when there are remaining references from Kernel to the Feature being killed.
-
-
-
Method Detail
-
stopFeature
public static boolean stopFeature(ej.kf.Feature f, long timeout)KF-1.3 spec:Feature.stop()may result toSTOPPEDstate when there are remaining references from Kernel to the Feature being killed. Wadapps API does not provide this intermediate step (theSTOPPEDstate 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.- Parameters:
f- the feature to stop.timeout- the maximum time to wait in milliseconds.- Returns:
- true if Feature has been successfully stopped, false if timeout occurred (the Feature remains in
STOPPEDstate)
-
stopFeature
public static void stopFeature(ej.kf.Feature f)
This function infinitely blocks until all Feature references are removed by the Kernel.
-
clone
public static <T> T clone(T source, ej.kf.Feature cloneOwner)
-
-