BasicPollingSample (3.14.0 400 API)
Date: 2018-11-22

com.marketfactory.sample

## Class BasicPollingSample

- java.lang.Object
- - com.marketfactory.sample.BasicPollingSample

-     public class BasicPollingSample
      extends java.lang.Object

  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.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `BasicPollingSample()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `main(java.lang.String[] args)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### BasicPollingSample

          public BasicPollingSample()

  - ### Method Detail

    - #### main

          public static void main(java.lang.String[] args)