org.lastbamboo.common.sip.client
Class SipClientTrackerImpl

java.lang.Object
  extended by org.lastbamboo.common.sip.client.SipClientTrackerImpl
All Implemented Interfaces:
SipClientCloseListener, SipClientTracker

public class SipClientTrackerImpl
extends Object
implements SipClientTracker

Class for keeping track of SIP clients.


Constructor Summary
SipClientTrackerImpl()
          Creates a new class for keeping track of SIP client connections to proxy servers.
 
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.
 void onClose(SipClient client)
          Called when the specified SIP client connection to a server is lost.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SipClientTrackerImpl

public SipClientTrackerImpl()
Creates a new class for keeping track of SIP client connections to proxy servers.

Method Detail

getSipClient

public SipClient getSipClient()
Description copied from interface: SipClientTracker
Accesses a random SIP client connection to a SIP server from the available clients.

Specified by:
getSipClient in interface SipClientTracker
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

public void addSipClient(SipClient client,
                         ProxyRegistrationListener listener)
Description copied from interface: SipClientTracker
Adds a SIP client to the tracker.

Specified by:
addSipClient in interface SipClientTracker
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.

onClose

public void onClose(SipClient client)
Description copied from interface: SipClientCloseListener
Called when the specified SIP client connection to a server is lost.

Specified by:
onClose in interface SipClientCloseListener
Parameters:
client - The client connection that has closed.


Copyright © 2013 LittleShoot. All Rights Reserved.