Class MAMIdentityExecutors

  • All Implemented Interfaces:

    
    public final class MAMIdentityExecutors
    
                        

    Wrap executors to automatically copy a MAM identity to any started tasks.

    • Constructor Detail

    • Method Detail

      • wrapExecutor

        @NonNull() static Executor wrapExecutor(@NonNull() Executor executor)

        Wrap an Executor to copy the MAM identity.

        Parameters:
        executor - Object to wrap.
        Returns:

        New object that wraps executor.

      • wrapExecutor

        @NonNull() static Executor wrapExecutor(@NonNull() Executor executor, Context context)

        Wrap an Executor to copy the MAM identity.

        Parameters:
        executor - Object to wrap.
        context - Current Context.
        Returns:

        New object that wraps executor.

      • wrapExecutorService

        @NonNull() static ExecutorService wrapExecutorService(@NonNull() ExecutorService executorService, @NonNull() Context context)

        Wrap an ExecutorService to copy the MAM identity.

        Parameters:
        executorService - Object to wrap.
        context - Current Context.
        Returns:

        New object that wraps executorService.