Class UserUpdateEventSpoutImpl

java.lang.Object
overit.geocall.event.producer.JsonSpout<UpdateUserEvent,User>
overit.geocall.basic.bl.user.spout.UserUpdateEventSpoutImpl
All Implemented Interfaces:
Spout<UpdateUserEvent,User,String>

@Event(UpdateUserEvent.class) @Component public class UserUpdateEventSpoutImpl extends JsonSpout<UpdateUserEvent,User>
Spout for the event UpdateUserEvent to serialize a BOUser into User.
GCApi:
spout
  • Constructor Details

    • UserUpdateEventSpoutImpl

      public UserUpdateEventSpoutImpl(M2Mapper m2Mapper)
  • Method Details

    • getPayload

      public User getPayload(PoolKit pk, UpdateUserEvent event)
      Description copied from interface: Spout
      Extracts the payload from the given event using the provided PoolKit.
      Parameters:
      pk - the PoolKit instance used for database operations
      event - the event from which to extract the payload
      Returns:
      the extracted payload of type P