Interface Preemptive


public interface Preemptive
Function interface that callers can optionally invoke concurrently.
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    Returns true if callers can safely invoke this function object concurrently.
  • Method Details

    • isPreemptive

      default boolean isPreemptive()
      Returns true if callers can safely invoke this function object concurrently. Returns false if this function object is not thread safe. Returns false by default.