Interface DiameterActivity
-
- All Known Subinterfaces:
BaseActivity
public interface DiameterActivity
Represents 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 DiameterMessageFactory
getDiameterMessageFactory()
Return a DiameterMessageFactory implementation to be used to createDiameterAvp
instances to add when creating aDiameterMessage
object to be fired on this Activity.long
getLastReceiveTime()
Returns the timestamp for the last message received on this activity, or 0 if no timestamp is available.long
getLastSendTime()
Returns the timestamp for the last message sent on this activity, or 0 if no timestamp is available.String
getSessionId()
Return the Session ID for this activity.void
sendMessage(DiameterMessage message)
Sends the given DiameterMessage on the DiameterActivity.
-
-
-
Method Detail
-
getDiameterMessageFactory
DiameterMessageFactory getDiameterMessageFactory()
Return a DiameterMessageFactory implementation to be used to createDiameterAvp
instances to add when creating aDiameterMessage
object 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.
-
-