public interface PayaraClusteredCDIEvent extends Serializable
| Modifier and Type | Method and Description |
|---|---|
void |
addQualifiers(Set<Annotation> qualifiers)
Adds the set of qualifiers to the event
|
InstanceDescriptor |
getId()
Return the Instance Descriptor of the sender
|
InstanceDescriptor |
getInstanceDescriptor()
Returns the Instance Descriptor of the Sender
|
Serializable |
getPayload()
Returns the Payload of the object.
|
Properties |
getProperties()
Returns the set of properties in the event
|
String |
getProperty(String name)
Returns the property value with the specified name
|
String |
getProperty(String name,
String defaultValue)
Returns the property value with the specified name
|
Set<Annotation> |
getQualifiers()
Returns the set of qualifiers on the event
|
boolean |
isLoopBack()
Returns true if the event was sent from the same JVM
|
void |
setId(InstanceDescriptor id)
Set the Intstance Descriptor
|
void |
setLoopBack(boolean loopBack)
Set to true if the event should be sent to listeners in the same JVM
|
void |
setProperty(String name,
String value)
Sets a property in the event
|
InstanceDescriptor getId()
InstanceDescriptor getInstanceDescriptor()
Serializable getPayload() throws IOException, ClassNotFoundException
IOException - If a problem occurs during DeserializationClassNotFoundException - If a problem occurs during DeserializationProperties getProperties()
String getProperty(String name)
name - Name of the property to returnString getProperty(String name, String defaultValue)
name - Name of the property to returndefaultValue - Value to be returned if the property is not presentboolean isLoopBack()
void setId(InstanceDescriptor id)
id - void setLoopBack(boolean loopBack)
loopBack - void setProperty(String name, String value)
name - Name of the propertyvalue - THe value of the propertySet<Annotation> getQualifiers()
void addQualifiers(Set<Annotation> qualifiers) throws IOException
qualifiers - IOException - in case of serialization of qualifiers failsCopyright © 2019. All rights reserved.