org.lastbamboo.common.sip.bootstrap
Class RobustProxyRegistrarImpl

java.lang.Object
  extended by org.lastbamboo.common.sip.bootstrap.RobustProxyRegistrarImpl
All Implemented Interfaces:
ProxyRegistrar

public class RobustProxyRegistrarImpl
extends Object
implements ProxyRegistrar

A proxy registrar that attempts to be robust by maintaining registrations to multiple SIP proxies.


Constructor Summary
RobustProxyRegistrarImpl(URI client, org.littleshoot.util.CandidateProvider<URI> candidateProvider, ProxyRegistrarFactory registrarFactory, org.lastbamboo.common.sip.client.util.ProxyRegistrationListener listener)
          Constructs a new robust proxy registrar.
 
Method Summary
 org.littleshoot.util.Optional<URI> mostRecentlyActive()
          
 void register()
          Registers a client with a proxy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RobustProxyRegistrarImpl

public RobustProxyRegistrarImpl(URI client,
                                org.littleshoot.util.CandidateProvider<URI> candidateProvider,
                                ProxyRegistrarFactory registrarFactory,
                                org.lastbamboo.common.sip.client.util.ProxyRegistrationListener listener)
Constructs a new robust proxy registrar.

Parameters:
client - The client to register.
candidateProvider - The candidate provider that provides candidate registrars for registration.
registrarFactory - The registrar factory that provides registrars for single registrations.
listener - The listener to be notified of registration events.
Method Detail

register

public void register()
Registers a client with a proxy. This is expected to be a non-blocking call. Generally, proxy registrars should be supplied with the information necessary for registration during construction. This includes the client to register, the proxy to register with, and a listener to be notified of registration events.

Specified by:
register in interface ProxyRegistrar

mostRecentlyActive

public org.littleshoot.util.Optional<URI> mostRecentlyActive()



Copyright © 2013 LittleShoot. All Rights Reserved.