org.jdiameter.client.api
Interface IContainer

All Superinterfaces:
Stack, Wrapper
All Known Implementing Classes:
StackImpl, StackImpl

public interface IContainer
extends Stack

This interface extends behavior of stack interface Data: $Date: 2008/07/03 19:43:10 $ Revision: $Revision: 1.1 $

Version:
1.5.0.1
Author:
erick.svenson@yahoo.com, Alexandre Mendonca , Bartosz Baranowski

Method Summary
 void addSessionListener(java.lang.String sessionId, NetworkReqListener listener)
          Add session listener
 IAssembler getAssemblerFacility()
          Return root IOC
 IConcurrentFactory getConcurrentFactory()
          Return common concurrent factory
 Configuration getConfiguration()
          Return configuration instance
 java.util.concurrent.ScheduledExecutorService getScheduledFacility()
          Return common Scheduled Executor Service
 StackState getState()
          Return state of stack
 void removeSessionListener(java.lang.String sessionId)
          Remove session event listener by sessionId
 void sendMessage(IMessage session)
          Send message
 
Methods inherited from interface org.jdiameter.api.Stack
destroy, getDictionary, getLogger, getMetaData, getSession, getSessionFactory, init, isActive, start, start, stop
 
Methods inherited from interface org.jdiameter.api.Wrapper
isWrapperFor, unwrap
 

Method Detail

getState

StackState getState()
Return state of stack

Returns:
Return state of stack

getConfiguration

Configuration getConfiguration()
Return configuration instance

Returns:
configuration instance

getAssemblerFacility

IAssembler getAssemblerFacility()
Return root IOC

Returns:
root IOC

getScheduledFacility

java.util.concurrent.ScheduledExecutorService getScheduledFacility()
Return common Scheduled Executor Service

Returns:
common Scheduled Executor Service

getConcurrentFactory

IConcurrentFactory getConcurrentFactory()
Return common concurrent factory

Returns:

sendMessage

void sendMessage(IMessage session)
                 throws RouteException,
                        AvpDataException,
                        IllegalDiameterStateException,
                        java.io.IOException
Send message

Parameters:
session - session instance
Throws:
RouteException
AvpDataException
IllegalDiameterStateException
java.io.IOException

addSessionListener

void addSessionListener(java.lang.String sessionId,
                        NetworkReqListener listener)
Add session listener

Parameters:
sessionId - session id
listener - listener instance

removeSessionListener

void removeSessionListener(java.lang.String sessionId)
Remove session event listener by sessionId

Parameters:
sessionId - session identifier


Copyright © 2014. All Rights Reserved.