|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RawSession
This interface append to base interface specific methods for creating and send raw diameter messages
| Method Summary | |
|---|---|
Message |
createMessage(int commandCode,
ApplicationId applicationId,
Avp... avp)
Returns a new message object with the specified command code, applicationId and predefined avps. |
Message |
createMessage(int commandCode,
ApplicationId applicationId,
long hopByHopIdentifier,
long endToEndIdentifier,
Avp... avp)
Returns a new message object with the predefined Command-code, ApplicationId, HopByHopIdentifier, EndToEndIdentifier This method allow created message from storage or created specific message. |
Message |
createMessage(Message message,
boolean copyAvps)
Returns a new message object with the copy of parent message header |
java.util.concurrent.Future<Message> |
send(Message message)
Sends and wait response message with default timeout |
void |
send(Message message,
EventListener<Message,Message> listener)
Sends and wait response message with default timeout |
void |
send(Message message,
EventListener<Message,Message> 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 |
| 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 |
|---|
Message createMessage(int commandCode,
ApplicationId applicationId,
Avp... avp)
commandCode - code of messageapplicationId - applicationId of destination applicationavp - array of avps
Message createMessage(int commandCode,
ApplicationId applicationId,
long hopByHopIdentifier,
long endToEndIdentifier,
Avp... avp)
commandCode - code of messageapplicationId - applicationId of destination applicationhopByHopIdentifier - hop by hop identifier of messageendToEndIdentifier - end to end identifier of messageavp - array of avps
Message createMessage(Message message,
boolean copyAvps)
message - origination messagecopyAvps - if true all avps will be copy to new message
void send(Message message,
EventListener<Message,Message> 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<Message,Message> 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 | |||||||||