private void processThingTag(final ThingTag thingTag) { final String elementIdentifier = thingTag.asIdentifierString(); LogUtil.enhanceLogWithCorrelationId(log, "things-tags-sync-" + elementIdentifier); log.debug("Forwarding incoming ThingTag '{}'", elementIdentifier); forwardJsonifiableToShardRegion(thingTag, ThingTag::getId); }
private void processThingTag(final ThingTag thingTag) { final String elementIdentifier = thingTag.asIdentifierString(); LogUtil.enhanceLogWithCorrelationId(log, "things-tags-sync-" + elementIdentifier); log.debug("Forwarding incoming ThingTag '{}'", elementIdentifier); forwardJsonifiableToShardRegion(thingTag, ThingTag::getId); }
private void processThingTag(final ThingTag thingTag) { LogUtil.enhanceLogWithCorrelationId(log, "things-tags-sync-" + thingTag.asIdentifierString()); log.debug("Received new Thing Tag for thing <{}> with revision <{}>: <{}>.", thingId, sequenceNumber, thingTag.asIdentifierString()); activeSyncMetadata = new SyncMetadata(getSender(), thingTag); if (thingTag.getRevision() > sequenceNumber) { log.info("The Thing Tag for the thing <{}> has the revision {} which is greater than the current actor's" + " sequence number <{}>.", thingId, thingTag.getRevision(), sequenceNumber); triggerSynchronization(); } else { ackSync(true); } }
private void processThingTag(final ThingTag thingTag) { LogUtil.enhanceLogWithCorrelationId(log, "things-tags-sync-" + thingTag.asIdentifierString()); log.debug("Received new Thing Tag for thing <{}> with revision <{}>: <{}>.", thingId, sequenceNumber, thingTag.asIdentifierString()); activeSyncMetadata = new SyncMetadata(getSender(), thingTag); if (thingTag.getRevision() > sequenceNumber) { log.info("The Thing Tag for the thing <{}> has the revision {} which is greater than the current actor's" + " sequence number <{}>.", thingId, thingTag.getRevision(), sequenceNumber); triggerSynchronization(); } else { ackSync(true); } }