Interface DiameterActivity
-
- All Known Subinterfaces:
BaseActivity
public interface DiameterActivityRepresents a session with a Diameter peer. DiameterMessages (both requests and responses) are received as events fired on DiameterActivity objects.- Author:
- Open Cloud
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DiameterMessageFactorygetDiameterMessageFactory()Return a DiameterMessageFactory implementation to be used to createDiameterAvpinstances to add when creating aDiameterMessageobject to be fired on this Activity.longgetLastReceiveTime()Returns the timestamp for the last message received on this activity, or 0 if no timestamp is available.longgetLastSendTime()Returns the timestamp for the last message sent on this activity, or 0 if no timestamp is available.StringgetSessionId()Return the Session ID for this activity.voidsendMessage(DiameterMessage message)Sends the given DiameterMessage on the DiameterActivity.
-
-
-
Method Detail
-
getDiameterMessageFactory
DiameterMessageFactory getDiameterMessageFactory()
Return a DiameterMessageFactory implementation to be used to createDiameterAvpinstances to add when creating aDiameterMessageobject to be fired on this Activity.- Returns:
- a DiameterMessageFactory implementation
-
sendMessage
void sendMessage(DiameterMessage message) throws SendException
Sends the given DiameterMessage on the DiameterActivity. The response to the message (if any) will be fired on this activity.- Parameters:
message- the Diameter message to send- Throws:
SendException
-
getSessionId
String getSessionId()
Return the Session ID for this activity.- Returns:
- the Session ID for this activity
-
getLastSendTime
long getLastSendTime()
Returns the timestamp for the last message sent on this activity, or 0 if no timestamp is available.
-
getLastReceiveTime
long getLastReceiveTime()
Returns the timestamp for the last message received on this activity, or 0 if no timestamp is available.
-
-