org.jdiameter.api.app
Interface StateEvent

All Superinterfaces:
java.lang.Comparable

public interface StateEvent
extends java.lang.Comparable

The Event class holds information about the different events that can be handled by the state machine. Events are prioritized depending on the importance of the event. The priority model tries to ensure that old messages are handled before any new ones.

Version:
1.5.1 Final
Author:
erick.svenson@yahoo.com, Alexandre Mendonca , Bartosz Baranowski

Method Summary
<E> E
encodeType(java.lang.Class<E> enumType)
          This method should be adapted by any subclass to return the type corresponding to the actual event.
 java.lang.Object getData()
          Return information object of this StateEvent
 java.lang.Enum getType()
          Return type of this StateEvent
 void setData(java.lang.Object data)
          Set information object to this StateEvent
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

encodeType

<E> E encodeType(java.lang.Class<E> enumType)
This method should be adapted by any subclass to return the type corresponding to the actual event.

Returns:
type of this StateEvent

getType

java.lang.Enum getType()
Return type of this StateEvent

Returns:
type of this StateEvent

setData

void setData(java.lang.Object data)
Set information object to this StateEvent

Parameters:
data - information object

getData

java.lang.Object getData()
Return information object of this StateEvent

Returns:
information object of this StateEvent


Copyright © 2013. All Rights Reserved.