|
|
|
@ -153,6 +153,8 @@ public abstract class AbstractConsumerService<N extends com.google.protobuf.Gene |
|
|
|
TbActorMsg actorMsg = actorMsgOpt.get(); |
|
|
|
if (actorMsg instanceof ComponentLifecycleMsg) { |
|
|
|
ComponentLifecycleMsg componentLifecycleMsg = (ComponentLifecycleMsg) actorMsg; |
|
|
|
log.info("[{}][{}][{}] Received Lifecycle event: {}", componentLifecycleMsg.getTenantId(), componentLifecycleMsg.getEntityId().getEntityType(), |
|
|
|
componentLifecycleMsg.getEntityId(), componentLifecycleMsg.getEvent()); |
|
|
|
if (EntityType.TENANT_PROFILE.equals(componentLifecycleMsg.getEntityId().getEntityType())) { |
|
|
|
TenantProfileId tenantProfileId = new TenantProfileId(componentLifecycleMsg.getEntityId().getId()); |
|
|
|
tenantProfileCache.evict(tenantProfileId); |
|
|
|
|