Class EventMessage
- java.lang.Object
-
- es.bsc.dataclay.util.events.message.EventMessage
-
- All Implemented Interfaces:
Comparable<EventMessage>
public final class EventMessage extends Object implements Comparable<EventMessage>
This event indicates that an object was persisted.
-
-
Constructor Summary
Constructors Constructor Description EventMessage()
Used for deserializationEventMessage(ObjectID newproducerObjectID, EventType neweventType, SerializedParametersOrReturn newparams)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(EventMessage other)
boolean
equals(Object obj)
EventMessageStateOuter.EventState
getEventState()
Get the EventMessage::eventStateEventType
getEventType()
Get Event typeEventMessageID
getId()
Get the EventMessage::idlong
getMessagePriorityAge()
Get the EventMessage::messagePriorityAgeSerializedParametersOrReturn
getParams()
Get the EventMessage::paramsObjectID
getProducerObjectID()
Get the EventMessage::producerObjectIDint
hashCode()
void
setEventState(EventMessageStateOuter.EventState neweventState)
Set the EventMessage::eventStatevoid
setEventType(EventType theEventType)
Set event typevoid
setId(EventMessageID newid)
Set the EventMessage::idvoid
setMessagePriorityAge(long newmessagePriorityAge)
Set the EventMessage::messagePriorityAgevoid
setParams(SerializedParametersOrReturn newparams)
Set the EventMessage::paramsvoid
setProducerObjectID(ObjectID newproducerObjectID)
Set the EventMessage::producerObjectIDString
toString()
-
-
-
Constructor Detail
-
EventMessage
public EventMessage(ObjectID newproducerObjectID, EventType neweventType, SerializedParametersOrReturn newparams)
Constructor- Parameters:
newproducerObjectID
- ID of the object that produced the eventneweventType
- Event type accomplished by this event.newparams
- the event message parameters (serialized)
-
EventMessage
public EventMessage()
Used for deserialization
-
-
Method Detail
-
getEventType
public EventType getEventType()
Get Event type- Returns:
- Event type
-
setEventType
public void setEventType(EventType theEventType)
Set event type- Parameters:
theEventType
- Event type
-
getId
public EventMessageID getId()
Get the EventMessage::id- Returns:
- the id
-
setId
public void setId(EventMessageID newid)
Set the EventMessage::id- Parameters:
newid
- the id to set
-
compareTo
public int compareTo(EventMessage other)
- Specified by:
compareTo
in interfaceComparable<EventMessage>
-
getParams
public SerializedParametersOrReturn getParams()
Get the EventMessage::params- Returns:
- the params
-
setParams
public void setParams(SerializedParametersOrReturn newparams)
Set the EventMessage::params- Parameters:
newparams
- the params to set
-
getMessagePriorityAge
public long getMessagePriorityAge()
Get the EventMessage::messagePriorityAge- Returns:
- the messagePriorityAge
-
setMessagePriorityAge
public void setMessagePriorityAge(long newmessagePriorityAge)
Set the EventMessage::messagePriorityAge- Parameters:
newmessagePriorityAge
- the messagePriorityAge to set
-
getProducerObjectID
public ObjectID getProducerObjectID()
Get the EventMessage::producerObjectID- Returns:
- the producerObjectID
-
setProducerObjectID
public void setProducerObjectID(ObjectID newproducerObjectID)
Set the EventMessage::producerObjectID- Parameters:
newproducerObjectID
- the producerObjectID to set
-
getEventState
public EventMessageStateOuter.EventState getEventState()
Get the EventMessage::eventState- Returns:
- the eventState
-
setEventState
public void setEventState(EventMessageStateOuter.EventState neweventState)
Set the EventMessage::eventState- Parameters:
neweventState
- the eventState to set
-
-