package Ġbr . com . z up . edu . pix . delete ĊĊ Ċ import Ġbr . com . z up . edu .* Ċ import Ġio . grpc . Status Ċ import Ġio . grpc . stub . Stream Observer Ċ import Ġio . mic ronaut . http . client . exceptions . HttpClient Response Exception Ċ import Ġorg . slf 4 j . LoggerFactory Ċ import Ġjavax . inject . Inject Ċ import Ġjavax . inject . Singleton Ċ Ċ //@ ErrorHandler Ċ @ Singleton Ċ class ĠDelete Pix Key Endpoint ( ĊĠĠ Ġ@ Inject Ġprivate Ġvar Ġservice : ĠDelete Pix Key Service Ċ ) Ġ: ĠKey Manager Delete Service Grpc . Key Manager Delete ServiceImpl Base () Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġlogger Ġ= ĠLoggerFactory . getLogger ( Key Manager Delete Service Grpc :: class . java ) ĊĊĠĠĠ Ġoverride Ġfun Ġdelete Pix Key ( ĊĠĠĠĠĠĠĠ Ġrequest : ĠDelete Pix Key Request , ĊĠĠĠĠĠĠĠ Ġresponse Observer : ĠStream Observer < Delete Pix Key Response > ?) Ġ{ ĊĊĠĠĠĠĠĠĠ Ġlogger . info (" De let ando Ġch ave Ġpara Ġo Ġrequest : Ġ$ request ") ĊĠĠĠĠĠĠĠ Ġ// valid ar Ġdados Ġde Ġentrada ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġservice . delete ( request ) ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġresponse Ġ= ĠDelete Pix Key Response ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. newBuilder () ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. set Info (" Ch ave Ġde Ġid Ġ'${ request . pix Id }' Ġex cl uid a ") ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. build () ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġlogger . info (" Ch ave Ġex cl uid a : Ġ$ response ") ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġresponse Observer !!. onNext ( response ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġresponse Observer . on Completed () ĊĊĠĠĠ Ġ} ĊĊĊĊ Ċ } ĊĊĊĊ