|
|||||||||
| Home >> All >> com >> synaptics >> [ elvis overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.synaptics.elvis
Interface ElvisHandler

- All Known Implementing Classes:
- ElvisTest.TestHandler
- public interface ElvisHandler
ElvisHandler is the primitive interface for the handlers passed
to ElvisHandler.get() .
perform() will be called whenever the ElvisWatcher thread receives
a request from an Elvis client.
Implementors of ElvisHandler must be aware that they are not
being called from the Swing notification thread, and handle their UI interactions
accordingly.
perform is not called in a thread-safe manner. If we are the One
True Elvis, then it is quite possible for
the local Elvis client to call perform from one of its threads at the
same time as another Elvis client transmits a request to us. In this case, it we
will wind up with two different threads in the perform method. Although
Elvis is thread-safe up until the point of collision, it is up to the client application
(that is, your code) to take over thread-safety, starting with the perform
method.
Also, to avoid potentially blocking Elvis clients while the handler does work,
implementors will probably want to have a separate thread for actually doing
the work of the ElvisHandler. In this case, perform should simply
queue the request and then return.
- Version:
- $Id: ElvisHandler.java,v 1.1 2002/05/09 07:17:17 clheiny Exp $
| Method Summary | |
ElvisResult |
perform(java.lang.String data)
The perform() method is what actually performs the work associated with
this incarnation of Elvis. |
| Method Detail |
perform
public ElvisResult perform(java.lang.String data)
- The
perform()method is what actually performs the work associated with this incarnation of Elvis.
|
|||||||||
| Home >> All >> com >> synaptics >> [ elvis overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC