org.lastbamboo.common.sip.client
Interface SipClientTracker

All Superinterfaces:
SipClientCloseListener
All Known Implementing Classes:
SipClientTrackerImpl

public interface SipClientTracker
extends SipClientCloseListener

Keeps track of SIP client instances. Each SIP client has a connection to a single SIP server.


Method Summary
 void addSipClient(SipClient client, ProxyRegistrationListener listener)
          Adds a SIP client to the tracker.
 SipClient getSipClient()
          Accesses a random SIP client connection to a SIP server from the available clients.
 
Methods inherited from interface org.lastbamboo.common.sip.client.SipClientCloseListener
onClose
 

Method Detail

getSipClient

SipClient getSipClient()
Accesses a random SIP client connection to a SIP server from the available clients.

Returns:
A random SIP client from the available client connections to SIP servers. If there are no available connections to proxies this returns null.

addSipClient

void addSipClient(SipClient client,
                  ProxyRegistrationListener listener)
Adds a SIP client to the tracker.

Parameters:
client - The client to track.
listener - The registration listener that is notified when the client is closed. The closing of the client signifies that the registration is lost.


Copyright © 2013 LittleShoot. All Rights Reserved.