Package spin.demo.async
Interface AsyncBean
- All Known Implementing Classes:
AsyncBeanImpl
public interface AsyncBean
A common interface for an async bean.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(AsyncListener listener) Add a listener.void
start()
Start this bean in an asynchron thread.
-
Method Details
-
addListener
Add a listener.- Parameters:
listener
- listener to add
-
start
void start()Start this bean in an asynchron thread.
-