com.mucommander.ui.main.tree
Class IOThread

java.lang.Object
  extended by java.lang.Thread
      extended by com.mucommander.ui.main.tree.IOThread
All Implemented Interfaces:
java.lang.Runnable

public class IOThread
extends java.lang.Thread

A thread that executes i/o operations.

Author:
Mariusz Jakubowski

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
IOThread(java.util.List queue, long blockThreshold)
          Creates a new instance of an IOThread.
 
Method Summary
 boolean isBlocked()
          Checks if current thread is blocked.
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IOThread

public IOThread(java.util.List queue,
                long blockThreshold)
Creates a new instance of an IOThread.

Parameters:
queue - a queue with tasks
blockThreshold - a time after this thread is marked as blocked [ms]
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

isBlocked

public boolean isBlocked()
Checks if current thread is blocked. This is done by checking if last action time is smaller than block threshold.

Returns:
true if thread is running


This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard