package Ġpar k and rest . park ing management . web . rabbit . time . changed Ċ Ċ import Ġorg . slf 4 j . LoggerFactory Ċ import Ġorg . springframework . amqp . rabbit . annotation . Rabbit Listener Ċ import Ġorg . springframework . stereotype . Component Ċ import Ġpar k and rest . events . Changed Time Event Ċ import Ġpar k and rest . time management . System Time Manager Ċ Ċ @ Component Ċ class ĠChanged Time Event Consumer { ĊĊĠĠĠ Ġ@ Rabbit Listener ĊĠĠĠ Ġfun Ġreceive Event ( event : ĠChanged Time Event ){ ĊĠĠĠĠĠĠĠ Ġlog . info (" Received ĠMessage : Ġ$ event ") ĊĠĠĠĠĠĠĠ ĠSystem Time Manager . change Date To ( event . dateTime ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġlog Ġ= ĠLoggerFactory . getLogger ( Changed Time Event Consumer :: class . java ) ĊĠĠĠ Ġ} Ċ }