Class PayaraClusteredCDIEventImpl
- java.lang.Object
-
- fish.payara.appserver.micro.services.PayaraClusteredCDIEventImpl
-
- All Implemented Interfaces:
PayaraClusteredCDIEvent
,Serializable
public class PayaraClusteredCDIEventImpl extends Object implements PayaraClusteredCDIEvent
- Author:
- Steve Millidge (Payara Services Limited)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PayaraClusteredCDIEventImpl(InstanceDescriptor id)
PayaraClusteredCDIEventImpl(InstanceDescriptor id, Serializable payload)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addQualifiers(Set<Annotation> add)
Adds the set of qualifiers to the eventInstanceDescriptor
getId()
Return the Instance Descriptor of the senderInstanceDescriptor
getInstanceDescriptor()
Returns the Instance Descriptor of the SenderSerializable
getPayload()
Returns the Payload of the object.Properties
getProperties()
Returns the set of properties in the eventString
getProperty(String name)
Returns the property value with the specified nameString
getProperty(String name, String defaultValue)
Returns the property value with the specified nameSet<Annotation>
getQualifiers()
Returns the set of qualifiers on the eventboolean
isLoopBack()
Returns true if the event was sent from the same JVMvoid
setId(InstanceDescriptor id)
Set the Intstance Descriptorvoid
setLoopBack(boolean loopBack)
Set to true if the event should be sent to listeners in the same JVMvoid
setProperty(String name, String value)
Sets a property in the event
-
-
-
Constructor Detail
-
PayaraClusteredCDIEventImpl
public PayaraClusteredCDIEventImpl(InstanceDescriptor id, Serializable payload) throws IOException
- Throws:
IOException
-
PayaraClusteredCDIEventImpl
public PayaraClusteredCDIEventImpl(InstanceDescriptor id)
-
-
Method Detail
-
getInstanceDescriptor
public InstanceDescriptor getInstanceDescriptor()
Description copied from interface:PayaraClusteredCDIEvent
Returns the Instance Descriptor of the Sender- Specified by:
getInstanceDescriptor
in interfacePayaraClusteredCDIEvent
- Returns:
-
getId
public InstanceDescriptor getId()
Description copied from interface:PayaraClusteredCDIEvent
Return the Instance Descriptor of the sender- Specified by:
getId
in interfacePayaraClusteredCDIEvent
- Returns:
-
setId
public void setId(InstanceDescriptor id)
Description copied from interface:PayaraClusteredCDIEvent
Set the Intstance Descriptor- Specified by:
setId
in interfacePayaraClusteredCDIEvent
-
getPayload
public Serializable getPayload() throws IOException, ClassNotFoundException
Description copied from interface:PayaraClusteredCDIEvent
Returns the Payload of the object. This should be deserialized before being returned- Specified by:
getPayload
in interfacePayaraClusteredCDIEvent
- Returns:
- Throws:
IOException
- If a problem occurs during DeserializationClassNotFoundException
- If a problem occurs during Deserialization
-
isLoopBack
public boolean isLoopBack()
Description copied from interface:PayaraClusteredCDIEvent
Returns true if the event was sent from the same JVM- Specified by:
isLoopBack
in interfacePayaraClusteredCDIEvent
- Returns:
-
setLoopBack
public void setLoopBack(boolean loopBack)
Description copied from interface:PayaraClusteredCDIEvent
Set to true if the event should be sent to listeners in the same JVM- Specified by:
setLoopBack
in interfacePayaraClusteredCDIEvent
-
getProperties
public Properties getProperties()
Description copied from interface:PayaraClusteredCDIEvent
Returns the set of properties in the event- Specified by:
getProperties
in interfacePayaraClusteredCDIEvent
- Returns:
-
setProperty
public void setProperty(String name, String value)
Description copied from interface:PayaraClusteredCDIEvent
Sets a property in the event- Specified by:
setProperty
in interfacePayaraClusteredCDIEvent
- Parameters:
name
- Name of the propertyvalue
- THe value of the property
-
getProperty
public String getProperty(String name)
Description copied from interface:PayaraClusteredCDIEvent
Returns the property value with the specified name- Specified by:
getProperty
in interfacePayaraClusteredCDIEvent
- Parameters:
name
- Name of the property to return- Returns:
-
getProperty
public String getProperty(String name, String defaultValue)
Description copied from interface:PayaraClusteredCDIEvent
Returns the property value with the specified name- Specified by:
getProperty
in interfacePayaraClusteredCDIEvent
- Parameters:
name
- Name of the property to returndefaultValue
- Value to be returned if the property is not present- Returns:
-
getQualifiers
public Set<Annotation> getQualifiers()
Description copied from interface:PayaraClusteredCDIEvent
Returns the set of qualifiers on the event- Specified by:
getQualifiers
in interfacePayaraClusteredCDIEvent
- Returns:
-
addQualifiers
public void addQualifiers(Set<Annotation> add) throws IOException
Description copied from interface:PayaraClusteredCDIEvent
Adds the set of qualifiers to the event- Specified by:
addQualifiers
in interfacePayaraClusteredCDIEvent
- Throws:
IOException
- in case of serialization of qualifiers fails
-
-