/* Ċ Ġ* ĠCopyright Ġ 2 0 1 8 ĠNet flix , ĠInc . Ċ Ġ* Ċ Ġ* ĠLicensed Ġunder Ġthe ĠApache ĠLicense , ĠVersion Ġ 2 . 0 Ġ( the Ġ" License "); Ċ Ġ* Ġyou Ġmay Ġnot Ġuse Ġthis Ġfile Ġexcept Ġin Ġcompliance Ġwith Ġthe ĠLicense . Ċ Ġ* ĠYou Ġmay Ġobtain Ġa Ġcopy Ġof Ġthe ĠLicense Ġat Ċ Ġ* Ċ Ġ* ĠĠĠ Ġhttp :// www . apache . org / licenses / LICENSE - 2 . 0 Ċ Ġ* Ċ Ġ* ĠUnless Ġrequired Ġby Ġapplicable Ġlaw Ġor Ġagreed Ġto Ġin Ġwriting , Ġsoftware Ċ Ġ* Ġdistributed Ġunder Ġthe ĠLicense Ġis Ġdistributed Ġon Ġan Ġ" AS ĠIS " ĠBASIS , Ċ Ġ* ĠWITHOUT ĠWARRANTIES ĠOR ĠCONDITIONS ĠOF ĠANY ĠKIND , Ġeither Ġexpress Ġor Ġimplied . Ċ Ġ* ĠSee Ġthe ĠLicense Ġfor Ġthe Ġspecific Ġlanguage Ġgoverning Ġpermissions Ġand Ċ Ġ* Ġlimitations Ġunder Ġthe ĠLicense . Ċ Ġ*/ Ċ package Ġcom . ro bz ien ert . pubsub p oc . worker Ċ Ċ import Ġcom . ro bz ien ert . pubsub p oc . JobRequest Ċ import Ġcom . ro bz ien ert . pubsub p oc . worker . Listener Strategy . HTTP Ċ import Ġcom . ro bz ien ert . pubsub p oc . worker . Listener Strategy . REDIS Ċ import Ġcom . ro bz ien ert . pubsub p oc . worker . listener . Http Completed Job Listener Ċ import Ġcom . ro bz ien ert . pubsub p oc . worker . listener . Redis Completed Job Listener Ċ import Ġorg . springframework . stereotype . Component Ċ Ċ type alias ĠCompleted Job Listener Ġ= Ġ( JobRequest ) Ġ-> ĠUnit Ċ Ċ @ Component Ċ class ĠCompleted Job Listener Provider ( ĊĠ Ġprivate Ġval Ġlistener Properties : ĠListener Properties , ĊĠ Ġprivate Ġval Ġlisteners : ĠList < Completed Job Listener > Ċ ) Ġ{ ĊĊĠ Ġfun Ġprovide (): ĠCompleted Job Listener Ġ= ĊĠĠĠ Ġwhen Ġ( listener Properties . strategy ) Ġ{ ĊĠĠĠĠĠ ĠHTTP Ġ-> Ġlisteners . filter Is Instance < Http Completed Job Listener >() ĊĠĠĠĠĠ ĠRED IS Ġ-> Ġlisteners . filter Is Instance < Redis Completed Job Listener >() ĊĠĠĠ Ġ}. first () Ċ } Ċ