org.almendra.commons.threads
Class ThreadUtility

java.lang.Object
  extended by org.almendra.commons.threads.ThreadUtility

public class ThreadUtility
extends java.lang.Object

Contains several helper methods to deal with threads. The idea is to define a single place to deal with InterruptedException uniformingly avoiding code repretition.

Author:
Oliver Plohmann

Method Summary
static void sleep(long millis)
          Make current thread sleep for millis milliseconds.
static void wait(java.lang.Object object)
          CollectionBlock the thread that owns object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

sleep

public static void sleep(long millis)
Make current thread sleep for millis milliseconds.

Parameters:
millis - the number of milliseconds to make the current thread sleep

wait

public static void wait(java.lang.Object object)
CollectionBlock the thread that owns object.

Parameters:
object -