com.vodafone360.people.service.transport
Interface IConnection

All Superinterfaces:
IQueueListener
All Known Implementing Classes:
AuthenticationManager, HttpConnectionThread, TcpConnectionThread

public interface IConnection
extends IQueueListener


Method Summary
 boolean getIsConnected()
          Returns true if the current connection thread is connected.
 boolean getIsRpgConnectionActive()
          Returns true if we have an open RPG connection or false if we do not have one.
 void notifyOfRegainedNetworkCoverage()
          Called whenever the network coverage has been reestablished...
 void notifyOfUiActivity()
          If the UI is currently being used by the user this method gets called.
 void onLoginStateChanged(boolean isLoggedIn)
          Triggered by the ConnectionManager whenever the login engine has detected a change in the currently held session.
 void startThread()
          Starts the main connection thread.
 void stopThread()
          Stops the current connection thread. this should also stop any running sub-connection threads such as heartbeats or polls.
 
Methods inherited from interface com.vodafone360.people.service.transport.IQueueListener
notifyOfItemInRequestQueue
 

Method Detail

startThread

void startThread()
Starts the main connection thread.


stopThread

void stopThread()
Stops the current connection thread. this should also stop any running sub-connection threads such as heartbeats or polls.


notifyOfRegainedNetworkCoverage

void notifyOfRegainedNetworkCoverage()
Called whenever the network coverage has been reestablished...


onLoginStateChanged

void onLoginStateChanged(boolean isLoggedIn)
Triggered by the ConnectionManager whenever the login engine has detected a change in the currently held session. If the user has signed off for example, false will be passed as a parameter.

Parameters:
isLoggedIn - True if the user was just logged in, false if he was logged out.

getIsConnected

boolean getIsConnected()
Returns true if the current connection thread is connected.

Returns:
True if the connection thread is connected to the backend.

getIsRpgConnectionActive

boolean getIsRpgConnectionActive()
Returns true if we have an open RPG connection or false if we do not have one.

Returns:
True if the RPG connection is currently active or false otherwise.

notifyOfUiActivity

void notifyOfUiActivity()
If the UI is currently being used by the user this method gets called.



JavaDoc