private void processPolicyReferenceTag(final PolicyReferenceTag policyReferenceTag) { final String elementIdentifier = policyReferenceTag.asIdentifierString(); LogUtil.enhanceLogWithCorrelationId(log, "policies-tags-sync-" + elementIdentifier); log.debug("Forwarding PolicyReferenceTag '{}'", elementIdentifier); forwardJsonifiableToShardRegion(policyReferenceTag, unused -> policyReferenceTag.getEntityId()); }
private void processPolicyReferenceTag(final PolicyReferenceTag policyReferenceTag) { final String elementIdentifier = policyReferenceTag.asIdentifierString(); LogUtil.enhanceLogWithCorrelationId(log, "policies-tags-sync-" + elementIdentifier); log.debug("Forwarding PolicyReferenceTag '{}'", elementIdentifier); forwardJsonifiableToShardRegion(policyReferenceTag, unused -> policyReferenceTag.getEntityId()); }
private void processPolicyReferenceTag(final PolicyReferenceTag policyReferenceTag) { LogUtil.enhanceLogWithCorrelationId(log, "policies-tags-sync-" + policyReferenceTag.asIdentifierString()); "policy-revision <{}>: <{}>.", new Object[]{thingId, sequenceNumber, policyId, policyRevision, policyReferenceTag.asIdentifierString()}); log.debug("Policy-Reference-Tag has different policy-id than the current policy-id <{}> for the " + "thing <{}>: <{}>.", policyId, thingId, policyReferenceTag.asIdentifierString()); log.info("The Policy-Reference-Tag has a revision which is greater " + "than the current policy-revision <{}> for thing <{}>: <{}>.", policyRevision, thingId, policyReferenceTag.asIdentifierString()); triggerSync = true; } else { log.debug("The Policy-Reference-Tag has a revision which is less than or equal to " + "the current policy-revision <{}> for thing <{}>: <{}>.", policyRevision, thingId, policyReferenceTag.asIdentifierString());
private void processPolicyReferenceTag(final PolicyReferenceTag policyReferenceTag) { LogUtil.enhanceLogWithCorrelationId(log, "policies-tags-sync-" + policyReferenceTag.asIdentifierString()); "policy-revision <{}>: <{}>.", new Object[]{thingId, sequenceNumber, policyId, policyRevision, policyReferenceTag.asIdentifierString()}); log.debug("Policy-Reference-Tag has different policy-id than the current policy-id <{}> for the " + "thing <{}>: <{}>.", policyId, thingId, policyReferenceTag.asIdentifierString()); log.info("The Policy-Reference-Tag has a revision which is greater " + "than the current policy-revision <{}> for thing <{}>: <{}>.", policyRevision, thingId, policyReferenceTag.asIdentifierString()); triggerSync = true; } else { log.debug("The Policy-Reference-Tag has a revision which is less than or equal to " + "the current policy-revision <{}> for thing <{}>: <{}>.", policyRevision, thingId, policyReferenceTag.asIdentifierString());