Package overit.geocall.event.producer
Class JsonSpout<E extends GenericEvent<?>,P>
java.lang.Object
overit.geocall.event.producer.JsonSpout<E,P>
- Type Parameters:
E- the type of the object extending GenericEvent to be serializedP- the type of the payload object
- Direct Known Subclasses:
AccountInsertedSpout,AccountUpdatedSpout,AddressInsertedSpout,AddressUpdatedSpout,AssetDetachedSpout,AssetInsertedSpout,AssetUpdatedSpout,CompanyCreateEventSpoutImpl,CompanyUpdateEventSpoutImpl,DataCollectionTemplateStructureOutcomeRuleInsertedSpout,DataCollectionTemplateStructureOutcomeRuleUpdatedSpout,DCTemplateVisibilityRuleHeaderDeletedSpout,DCTemplateVisibilityRuleHeaderInsertedSpout,DCTemplateVisibilityRuleHeaderUpdatedSpout,DCTemplateVisibilityRuleRowDeletedSpout,DCTemplateVisibilityRuleRowInsertedSpout,LoggingConfigChangeSpoutImpl,LoginSpoutImpl,LogoutSpoutImpl,MobileFormsSheetInsertedSpout,MobileFormsSheetStatusUpdatedSpout,MobileFormsSheetUpdatedSpout,MobileFormsTemplateStructureReleaseInsertedSpout,SystemConfigChangeSpoutImpl,TechnicalObjectAddressInsertedSpout,TenantConfigChangeSpoutImpl,TenantStartupSpoutImpl,UserCreateEventSpoutImpl,UserTypeCreateEventSpoutImpl,UserTypeUpdateEventSpoutImpl,UserUpdateEventSpoutImpl,WorkOrderHeaderInsertedSpout,WorkOrderHeaderStatusUpdatedSpout,WorkOrderHeaderUpdatedSpout,WorkOrderOperationInsertedSpout,WorkOrderOperationStatusUpdatedSpout,WorkOrderOperationUpdatedSpout
public abstract class JsonSpout<E extends GenericEvent<?>,P>
extends Object
implements Spout<E,P,String>
Serializer for the Json format
-
Constructor Details
-
JsonSpout
public JsonSpout()
-
-
Method Details
-
serialize
Serializes a message into a JSON formatted string- Specified by:
serializein interfaceSpout<E extends GenericEvent<?>,P, String> - Parameters:
message- the message to be serialized- Returns:
- the serialized message.
- Throws:
MessageDispatchException- the message dispatch exception
-