com.vodafone360.people.engine
Interface BaseEngine.IEngineEventCallback

All Known Implementing Classes:
IPeopleServiceImpl
Enclosing class:
BaseEngine

public static interface BaseEngine.IEngineEventCallback

Interface which must be implemented by engine client. Provides the interface for engine to return the results of requests to their clients.


Method Summary
 ApplicationCache getApplicationCache()
          Returns the ApplicationCache, for storing data.
 UiAgent getUiAgent()
          Returns the UiAgent, for sending unsolicited messages to the UI.
 void kickWorkerThread()
          Restarts the WorkerThread if it is in a sleeping or suspended state, ignored otherwise.
 void onUiEvent(ServiceUiRequest event, int request, int status, java.lang.Object data)
          Handle an incoming UI Event.
 

Method Detail

onUiEvent

void onUiEvent(ServiceUiRequest event,
               int request,
               int status,
               java.lang.Object data)
Handle an incoming UI Event.

Parameters:
event - ServiceUiRequest - e.g. UI request complete.
request - ID of associated request.
status - status of request (success or error code).
data - object Data associated with completed request.

kickWorkerThread

void kickWorkerThread()
Restarts the WorkerThread if it is in a sleeping or suspended state, ignored otherwise. This method is called by various events including: new UI or network events or a wake up alarm set by an engine requiring periodic activity.


getUiAgent

UiAgent getUiAgent()
Returns the UiAgent, for sending unsolicited messages to the UI.

Returns:
UiAgent object.

getApplicationCache

ApplicationCache getApplicationCache()
Returns the ApplicationCache, for storing data.

Returns:
Application cache object.


JavaDoc