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 voidaddQualifiers(Set<Annotation> add)Adds the set of qualifiers to the eventInstanceDescriptorgetId()Return the Instance Descriptor of the senderInstanceDescriptorgetInstanceDescriptor()Returns the Instance Descriptor of the SenderSerializablegetPayload()Returns the Payload of the object.PropertiesgetProperties()Returns the set of properties in the eventStringgetProperty(String name)Returns the property value with the specified nameStringgetProperty(String name, String defaultValue)Returns the property value with the specified nameSet<Annotation>getQualifiers()Returns the set of qualifiers on the eventbooleanisLoopBack()Returns true if the event was sent from the same JVMvoidsetId(InstanceDescriptor id)Set the Intstance DescriptorvoidsetLoopBack(boolean loopBack)Set to true if the event should be sent to listeners in the same JVMvoidsetProperty(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:PayaraClusteredCDIEventReturns the Instance Descriptor of the Sender- Specified by:
getInstanceDescriptorin interfacePayaraClusteredCDIEvent- Returns:
-
getId
public InstanceDescriptor getId()
Description copied from interface:PayaraClusteredCDIEventReturn the Instance Descriptor of the sender- Specified by:
getIdin interfacePayaraClusteredCDIEvent- Returns:
-
setId
public void setId(InstanceDescriptor id)
Description copied from interface:PayaraClusteredCDIEventSet the Intstance Descriptor- Specified by:
setIdin interfacePayaraClusteredCDIEvent
-
getPayload
public Serializable getPayload() throws IOException, ClassNotFoundException
Description copied from interface:PayaraClusteredCDIEventReturns the Payload of the object. This should be deserialized before being returned- Specified by:
getPayloadin interfacePayaraClusteredCDIEvent- Returns:
- Throws:
IOException- If a problem occurs during DeserializationClassNotFoundException- If a problem occurs during Deserialization
-
isLoopBack
public boolean isLoopBack()
Description copied from interface:PayaraClusteredCDIEventReturns true if the event was sent from the same JVM- Specified by:
isLoopBackin interfacePayaraClusteredCDIEvent- Returns:
-
setLoopBack
public void setLoopBack(boolean loopBack)
Description copied from interface:PayaraClusteredCDIEventSet to true if the event should be sent to listeners in the same JVM- Specified by:
setLoopBackin interfacePayaraClusteredCDIEvent
-
getProperties
public Properties getProperties()
Description copied from interface:PayaraClusteredCDIEventReturns the set of properties in the event- Specified by:
getPropertiesin interfacePayaraClusteredCDIEvent- Returns:
-
setProperty
public void setProperty(String name, String value)
Description copied from interface:PayaraClusteredCDIEventSets a property in the event- Specified by:
setPropertyin interfacePayaraClusteredCDIEvent- Parameters:
name- Name of the propertyvalue- THe value of the property
-
getProperty
public String getProperty(String name)
Description copied from interface:PayaraClusteredCDIEventReturns the property value with the specified name- Specified by:
getPropertyin interfacePayaraClusteredCDIEvent- Parameters:
name- Name of the property to return- Returns:
-
getProperty
public String getProperty(String name, String defaultValue)
Description copied from interface:PayaraClusteredCDIEventReturns the property value with the specified name- Specified by:
getPropertyin 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:PayaraClusteredCDIEventReturns the set of qualifiers on the event- Specified by:
getQualifiersin interfacePayaraClusteredCDIEvent- Returns:
-
addQualifiers
public void addQualifiers(Set<Annotation> add) throws IOException
Description copied from interface:PayaraClusteredCDIEventAdds the set of qualifiers to the event- Specified by:
addQualifiersin interfacePayaraClusteredCDIEvent- Throws:
IOException- in case of serialization of qualifiers fails
-
-