Interface ConcurrentBaseDelegate<T extends ConcurrentBaseDelegate<T>>

  • All Superinterfaces:
    BaseDelegate<T>
    All Known Implementing Classes:
    FrameStack

    public interface ConcurrentBaseDelegate<T extends ConcurrentBaseDelegate<T>>
    extends BaseDelegate<T>
    Since:
    1.6
    Author:
    Sina Madani
    • Method Detail

      • isThreadSafe

        boolean isThreadSafe()
      • setThreadSafe

        void setThreadSafe​(boolean concurrent)
      • mergeAndSetThreadSafety

        default void mergeAndSetThreadSafety​(BaseDelegate.MergeMode mode,
                                             boolean threadSafe)
      • mergeCollectionsUnique

        default <C> void mergeCollectionsUnique​(java.util.function.Function<T,​java.util.Collection<C>> colPropertyGetter,
                                                java.util.function.Supplier<? extends java.util.Collection<C>> threadSafeTargetCol,
                                                java.util.function.Supplier<? extends java.util.Collection<C>> targetCol,
                                                BaseDelegate.MergeMode mode)
        Calls BaseDelegate#mergeCollectionsUnique(Function, Function, MergeMode) with threadSafeTargetCol if the target (i.e. this or the base) should be thread-safe.