net.sf.asyncobjects.util.callbacks
Class RunnableAdapter
java.lang.Object
net.sf.asyncobjects.util.callbacks.RunnableAdapter
- All Implemented Interfaces:
- ExplicitSharing
public abstract class RunnableAdapter
- extends Object
- implements ExplicitSharing
A runnable adapter that allows using anonymouns inner classes for
implementing the ARunnable
interface.
- Author:
- const
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RunnableAdapter
public RunnableAdapter()
run
protected abstract void run()
throws Throwable
- Run action
- Throws:
Throwable
- if there is a problem- See Also:
Runnable.run()
wrap
public static ARunnable wrap(Runnable r)
- Wrap
Runnable
object into asynchronous object.
- Parameters:
r
- a runnable object
- Returns:
- async object that wraps it
export
public final ARunnable export()
- Returns:
- an action exported as asynchronous interface
Copyright © 2002-2007 Constantine Plotnikov. All Rights Reserved.