org.jdiameter.api
Interface Network

All Superinterfaces:
Wrapper

public interface Network
extends Wrapper

This interface introduces a capability to work with a network. You can get instance of this interface over stack instance: if (stack.isWrapperFor(Network.class)) { Network netWork = stack.unwrap(Network.class); ..... }

Version:
1.5.1 Final

Method Summary
 void addNetworkReqListener(NetworkReqListener listener, ApplicationId... applicationId)
          Register listener for processing network requests
 Statistic getStatistic()
          Return local peer network statistics
 void removeNetworkReqListener(ApplicationId... applicationId)
          Remove request listener
 
Methods inherited from interface org.jdiameter.api.Wrapper
isWrapperFor, unwrap
 

Method Detail

getStatistic

Statistic getStatistic()
Return local peer network statistics

Returns:
network statistics

addNetworkReqListener

void addNetworkReqListener(NetworkReqListener listener,
                           ApplicationId... applicationId)
                           throws ApplicationAlreadyUseException
Register listener for processing network requests

Parameters:
applicationId - application Id
listener - request listener
Throws:
ApplicationAlreadyUseException - if listener with predefined appId already append to network

removeNetworkReqListener

void removeNetworkReqListener(ApplicationId... applicationId)
Remove request listener

Parameters:
applicationId - application id of listener


Copyright © 2009. All Rights Reserved.