com.hazelcast.scheduledexecutor

## Class TaskUtils

- java.lang.Object
- - com.hazelcast.scheduledexecutor.TaskUtils

-     public final class TaskUtils
      extends Object

  A helper class with utilities to act upon `Runnable` and/or `Callable` tasks.

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static <V> Callable<V>` | `named(String name, Callable<V> callable)` Decorate any `Callable` with a `NamedTask` to provide naming information to scheduler.
    `static Runnable` | `named(String name, Runnable runnable)` Decorate any `Runnable` with a `NamedTask` to provide naming information to scheduler.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### named

          public static Runnable named(String name,
                                       Runnable runnable)

      Decorate any `Runnable` with a `NamedTask` to provide naming information to scheduler.
      Parameters:
        `name` - The name that the task will have
        `runnable` - The runnable task to be named
      Returns:
        A new Runnable implementing the `NamedTask` interface

    - #### named

          public static <V> Callable<V> named(String name,
                                              Callable<V> callable)

      Decorate any `Callable` with a `NamedTask` to provide naming information to scheduler.
      Parameters:
        `name` - The name that the task will have
        `callable` - The callable task to be named
      Returns:
        A new Callable implementing the `NamedTask` interface

Copyright © 2019. All rights reserved.