public interface Preemptive
Function interface that callers can optionally invoke concurrently.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanReturnstrueif callers can safely invoke this function object concurrently.
-
Method Details
-
isPreemptive
default boolean isPreemptive()Returnstrueif callers can safely invoke this function object concurrently. Returnsfalseif this function object is not thread safe. Returnsfalseby default.
-