org.microemu.app.util
Class MIDletThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.microemu.app.util.MIDletThread
All Implemented Interfaces:
java.lang.Runnable

public class MIDletThread
extends java.lang.Thread

MIDletContext is used to hold keys to running Threads created by MIDlet

Author:
vlads

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
static int graceTerminationPeriod
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
MIDletThread()
           
MIDletThread(java.lang.Runnable target)
           
MIDletThread(java.lang.Runnable target, java.lang.String name)
           
MIDletThread(java.lang.String name)
           
 
Method Summary
static void contextDestroyed(org.microemu.MIDletContext midletContext)
          Terminate all Threads created by MIDlet
static boolean hasRunningThreads(org.microemu.MIDletContext midletContext)
           
 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
 

Field Detail

graceTerminationPeriod

public static int graceTerminationPeriod
Constructor Detail

MIDletThread

public MIDletThread()

MIDletThread

public MIDletThread(java.lang.Runnable target)

MIDletThread

public MIDletThread(java.lang.Runnable target,
                    java.lang.String name)

MIDletThread

public MIDletThread(java.lang.String name)
Method Detail

run

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

contextDestroyed

public static void contextDestroyed(org.microemu.MIDletContext midletContext)
Terminate all Threads created by MIDlet

Parameters:
previousMidletAccess -

hasRunningThreads

public static boolean hasRunningThreads(org.microemu.MIDletContext midletContext)


Copyright © 2001-2009 MicroEmulator Team. All Rights Reserved.