spin.demo.async

Class AsyncBeanImpl

Implemented Interfaces:
AsyncBean, Runnable

public class AsyncBeanImpl
extends java.lang.Object
implements AsyncBean, Runnable

Implementation of an async bean.

Method Summary

void
addListener(AsyncListener listener)
Add a listener.
void
run()
void
start()
Start this bean in an asynchron thread.

Method Details

addListener

public void addListener(AsyncListener listener)
Add a listener.
Parameters:
listener - listener to add

run

public void run()
See Also:
Runnable

start

public void start()
Start this bean in an asynchron thread.