package Ġio . piv otal . pal . data . framework . event . messaging Ċ Ċ import Ġio . piv otal . pal . data . framework . event . Async EventHandler Ċ import Ġorg . springframework . messaging . Message Channel Ċ import Ġorg . springframework . messaging . support . Message Builder Ċ Ċ class ĠSpring Messaging Async EventHandler < T >( private Ġval ĠeventName : ĠString , Ġprivate Ġval Ġchannel : ĠMessage Channel ) Ġ: ĠAsync EventHandler < T > Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġon Event ( event : ĠT ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġmessage Ġ= ĠMessage Builder . with Payload ( event ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. setHeader (" eventName ", ĠeventName ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. build () ĊĠĠĠĠĠĠĠ Ġchannel . send ( message ) ĊĠĠĠ Ġ} Ċ } Ċ