| java.lang.Object gov.nist.microedition.sip.RefreshManager
createRefreshTask | public int createRefreshTask(Request request, SipConnectionNotifier sipConnectionNotifier, SipRefreshListener sipRefreshListener, SipClientConnection sipClientConnection)(Code) | | Creates a new RefreshTask with a specific id, schedules it and
keep the mapping between this newly created task and the id.
Parameters: request - for which a refresh task must be created Parameters: sipConnectionNotifier - used to sendthe request Parameters: sipRefreshListener - the callback interface used listening forrefresh event on this task Parameters: sipClientConnection - the connection to update the id of the newly created task |
getInstance | public static synchronized RefreshManager getInstance()(Code) | | Returns the instance of RefreshManager.
the instance of RefreshManager singleton |
getTask | public RefreshTask getTask(String taskId)(Code) | | Return the task mapping the taskId
Parameters: taskId - - the id of the task to retrieve the Refresh task mapping the taskId |
removeTask | public void removeTask(String taskId)(Code) | | Removes a task
Parameters: taskId - - the task id of the task to remove |
scheduleTask | public void scheduleTask(String taskId, int expires)(Code) | | Schedules the task whose id is given in parameter for the expires
Parameters: taskId - - the id of the task to schedule Parameters: expires - - the expires time,so the delay until when the stack mustschedule the task. If it is -1, it means that the expires hasalready been given when the task was created. |
|
|