Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.basex.util
Class Action

    java.lang.Object
      org.basex.util.Action

All Implemented Interfaces:
  java.lang.Runnable

    public abstract class Action

extends java.lang.Object
implements java.lang.Runnable

This class defines an action which is executed as a thread. If it is called another time, the current thread is skipped.

Author:
  Workgroup DBIS, University of Konstanz 2005-08, ISC License, Christian Gruen

Constructor Summary
`Action()`

Method Summary
`boolean` | `cancel()` Stops the current process.
`void` | `delay(int ms)` Sleeps for a while and executes the action afterwards.
`void` | `execute()` Creates a new action thread.
`boolean` | `running()` Checks if the process is running.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods inherited from interface java.lang.Runnable
`run`

Constructor Detail

### Action

    public Action()

Method Detail

### execute

    public final void execute()

  Creates a new action thread.

### delay

    public final void delay(int ms)

  Sleeps for a while and executes the action afterwards.

  Parameters:
    `ms` - number of milliseconds to wait before executions

### cancel

    public final boolean cancel()

  Stops the current process.

  Returns:
    true if process was stopped.

### running

    public final boolean running()

  Checks if the process is running.

  Returns:
    result of check

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD