TimedThreadsStorage
Date: 2014-06-04

org.gcube.vremanagement.resourcebroker.impl.support.threads

## Class TimedThreadsStorage

- java.lang.Object
- - org.gcube.vremanagement.resourcebroker.impl.support.threads.TimedThreadsStorage

-     public class TimedThreadsStorage
      extends java.lang.Object

  All the timed threads are registered here in order to invoke their end at shutdown of the BrokerService.
  Author:
    Daniele Strollo (ISTI-CNR)

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TimedThreadsStorage()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `registerThread(TimedThread thread)` Registers a new timed thread.
    `static void` | `registerThread(TimedThread thread, boolean toStart)` Registers a new timed thread.
    `static void` | `stopAll()` For all the timed threads registered orders to stop.

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

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

- - ### Constructor Detail

    - #### TimedThreadsStorage

          public TimedThreadsStorage()

  - ### Method Detail

    - #### stopAll

          public static void stopAll()

      For all the timed threads registered orders to stop.

    - #### registerThread

          public static void registerThread(TimedThread thread)

      Registers a new timed thread.
      Parameters:
        `thread` - the thread to register

    - #### registerThread

          public static void registerThread(TimedThread thread,
                            boolean toStart)

      Registers a new timed thread.
      Parameters:
        `thread` - the thread to register
        `toStart` - if the thread must be implicitly started here