Sample for using the non-blocking event polling mechanism
MFClientBase.processEvents(MFHandler).
This will allow you to keep ownership of the processing thread so it can do other work, process other MFClients, etc.
The key differences are:
- no onStart; onStop; onConnect; onDisconnect events
- use the
MFClientBase.connectNonBlocking() method. This will connect to the server and send
the logon messages. It will however not wait for the response. You need to poll for events with processEvents
to update the client state.