Package 

Class CommsTokenStore


  • 
    public class CommsTokenStore
    
                        

    Provides a "token" based system for storing and tracking actions across multiple threads. When a message is sent, a token is associated with the message and saved using the saveToken method. Anyone interested in tacking the state can call one of the wait methods on the token or using the asynchronous listener callback method on the operation. The CommsReceiver class, on another thread, reads responses back from the network. It uses the response to find the relevant token, which it can then notify. Note: Ping, connect and disconnect do not have a unique message id as only one outstanding request of each type is allowed to be outstanding