|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Session
This interface append to base interface specific methods for creating and send diameter requests and responses
| Method Summary | |
|---|---|
Request |
createRequest(int commandCode,
ApplicationId appId,
java.lang.String destRealm)
Returns a new Request object with the specified command code, applicationId, realm and predefined system avps. |
Request |
createRequest(int commandCode,
ApplicationId appId,
java.lang.String destRealm,
java.lang.String destHost)
Returns a new Request object with the specified command code, applicationId, realm, host and predefined system avps. |
Request |
createRequest(Request prevRequest)
Returns a new Request object base on previous request. |
java.util.concurrent.Future<Message> |
send(Message message)
Sends and wait response message with default timeout |
void |
send(Message message,
EventListener<Request,Answer> listener)
Sends and wait response message with default timeout |
void |
send(Message message,
EventListener<Request,Answer> listener,
long timeOut,
java.util.concurrent.TimeUnit timeUnit)
Sends and wait response message with defined timeout |
java.util.concurrent.Future<Message> |
send(Message message,
long timeOut,
java.util.concurrent.TimeUnit timeUnit)
Sends and wait response message with defined timeout |
void |
setRequestListener(NetworkReqListener listener)
Set session request listener |
| Methods inherited from interface org.jdiameter.api.BaseSession |
|---|
getCreationTime, getLastAccessedTime, getSessionId, isAppSession, isReplicable, isValid, release |
| Methods inherited from interface org.jdiameter.api.Wrapper |
|---|
isWrapperFor, unwrap |
| Method Detail |
|---|
void setRequestListener(NetworkReqListener listener)
listener - session request listener
Request createRequest(int commandCode,
ApplicationId appId,
java.lang.String destRealm)
commandCode - code of messageappId - applicationId of destination applicationdestRealm - name of destination Realm
Request createRequest(int commandCode,
ApplicationId appId,
java.lang.String destRealm,
java.lang.String destHost)
commandCode - code of messageappId - applicationId of destination applicationdestRealm - name of destination RealmdestHost - name of destination Host
Request createRequest(Request prevRequest)
prevRequest - previous request (header is copied)
void send(Message message,
EventListener<Request,Answer> listener)
throws InternalException,
IllegalDiameterStateException,
RouteException,
OverloadException
message - request/answer diameter messagelistener - event listener
InternalException - The InternalException signals that internal error is occurred.
IllegalDiameterStateException - The IllegalStateException signals that session has incorrect state (invalid).
RouteException - The NoRouteException signals that no route exist for a given realm.
OverloadException - The OverloadException signals that destination host is overloaded.
void send(Message message,
EventListener<Request,Answer> listener,
long timeOut,
java.util.concurrent.TimeUnit timeUnit)
throws InternalException,
IllegalDiameterStateException,
RouteException,
OverloadException
message - request/answer diameter messagelistener - event listenertimeOut - value of timeouttimeUnit - type of timeOut value
InternalException - The InternalException signals that internal error is occurred.
IllegalDiameterStateException - The IllegalStateException signals that session has incorrect state (invalid).
RouteException - The NoRouteException signals that no route exist for a given realm.
OverloadException - The OverloadException signals that destination host is overloaded.
java.util.concurrent.Future<Message> send(Message message)
throws InternalException,
IllegalDiameterStateException,
RouteException,
OverloadException
message - request/answer diameter message
InternalException - The InternalException signals that internal error is occurred.
IllegalDiameterStateException - The IllegalStateException signals that session has incorrect state (invalid).
RouteException - The NoRouteException signals that no route exist for a given realm.
OverloadException - The OverloadException signals that destination host is overloaded.
java.util.concurrent.Future<Message> send(Message message,
long timeOut,
java.util.concurrent.TimeUnit timeUnit)
throws InternalException,
IllegalDiameterStateException,
RouteException,
OverloadException
message - request/answer diameter messagetimeOut - value of timeouttimeUnit - type of timeOut value
InternalException - The InternalException signals that internal error is occurred.
IllegalDiameterStateException - The IllegalStateException signals that session has incorrect state (invalid).
RouteException - The NoRouteException signals that no route exist for a given realm.
OverloadException - The OverloadException signals that destination host is overloaded.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||