Inherited by ConfigurableAddressProvider
[virtual], and SingleAddressProvider
List of all members.
Simple implementations could be backed by a static list; more complex ones could use dynamic discovery protocols.
|AddressProvider Handle definition. |
|AddressProvider View definition. |
|AddressProvider Holder definition. |
Public Member Functions
|Obtain a next available address to use. |
|virtual void||accept ()=0|
|This method should be called by the client immediately after it determines that it can successfully use an address returned by the getNextAddress method. |
|virtual void||reject (Exception::Holder oheCause)=0|
|This method should be called by the client immediately after it determines that an attempt to use an address returned by the getNextAddress method has failed. |
|virtual InetSocketAddress::View getNextAddress||(||)||
Obtain a next available address to use.
If the caller can successfully use the returned address (e.g. a connection was established), it should call the AddressProvider's accept()
|virtual void reject||(||Exception::Holder||oheCause||)||
This method should be called by the client immediately after it determines that an attempt to use an address returned by the getNextAddress method has failed.
|oheCause||(optional) an exception that carries the reason why the the caller rejected the previously returned address|