public class PayaraClusteredCDIEventImpl extends Object implements PayaraClusteredCDIEvent
| Constructor and Description |
|---|
PayaraClusteredCDIEventImpl(InstanceDescriptor id) |
PayaraClusteredCDIEventImpl(InstanceDescriptor id,
Serializable payload) |
| Modifier and Type | Method and Description |
|---|---|
void |
addQualifiers(Set<Annotation> add)
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
|
public PayaraClusteredCDIEventImpl(InstanceDescriptor id, Serializable payload) throws IOException
IOExceptionpublic PayaraClusteredCDIEventImpl(InstanceDescriptor id)
public InstanceDescriptor getInstanceDescriptor()
PayaraClusteredCDIEventgetInstanceDescriptor in interface PayaraClusteredCDIEventpublic InstanceDescriptor getId()
PayaraClusteredCDIEventgetId in interface PayaraClusteredCDIEventpublic void setId(InstanceDescriptor id)
PayaraClusteredCDIEventsetId in interface PayaraClusteredCDIEventpublic Serializable getPayload() throws IOException, ClassNotFoundException
PayaraClusteredCDIEventgetPayload in interface PayaraClusteredCDIEventIOException - If a problem occurs during DeserializationClassNotFoundException - If a problem occurs during Deserializationpublic boolean isLoopBack()
PayaraClusteredCDIEventisLoopBack in interface PayaraClusteredCDIEventpublic void setLoopBack(boolean loopBack)
PayaraClusteredCDIEventsetLoopBack in interface PayaraClusteredCDIEventpublic Properties getProperties()
PayaraClusteredCDIEventgetProperties in interface PayaraClusteredCDIEventpublic void setProperty(String name, String value)
PayaraClusteredCDIEventsetProperty in interface PayaraClusteredCDIEventname - Name of the propertyvalue - THe value of the propertypublic String getProperty(String name)
PayaraClusteredCDIEventgetProperty in interface PayaraClusteredCDIEventname - Name of the property to returnpublic String getProperty(String name, String defaultValue)
PayaraClusteredCDIEventgetProperty in interface PayaraClusteredCDIEventname - Name of the property to returndefaultValue - Value to be returned if the property is not presentpublic Set<Annotation> getQualifiers()
PayaraClusteredCDIEventgetQualifiers in interface PayaraClusteredCDIEventpublic void addQualifiers(Set<Annotation> add)
PayaraClusteredCDIEventaddQualifiers in interface PayaraClusteredCDIEventCopyright © 2017. All rights reserved.