public interface RawSession extends BaseSession, Wrapper
| Modifier and Type | Method and Description |
|---|---|
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
|
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,
TimeUnit timeUnit)
Sends and wait response message with defined timeout
|
Future<Message> |
send(Message message,
long timeOut,
TimeUnit timeUnit)
Sends and wait response message with defined timeout
|
getCreationTime, getLastAccessedTime, getSessionId, isAppSession, isReplicable, isValid, releaseisWrapperFor, unwrapMessage createMessage(int commandCode, ApplicationId applicationId, Avp... avp)
commandCode - code of messageapplicationId - applicationId of destination applicationavp - array of avpsMessage 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 avpsMessage createMessage(Message message, boolean copyAvps)
message - origination messagecopyAvps - if true all avps will be copy to new messagevoid send(Message message, EventListener<Message,Message> listener) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
message - request/answer diameter messagelistener - event listenerInternalException - 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, TimeUnit timeUnit) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
message - request/answer diameter messagelistener - event listenertimeOut - value of timeouttimeUnit - type of timeOut valueInternalException - 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.Future<Message> send(Message message) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
message - request/answer diameter messageInternalException - 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.Future<Message> send(Message message, long timeOut, TimeUnit timeUnit) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
message - request/answer diameter messagetimeOut - value of timeouttimeUnit - type of timeOut valueInternalException - 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.Copyright © 2016. All Rights Reserved.