+ /**
+ * Date and Time in the format of yyyy-MM-dd'T'HH:mm:ss.SSSZ
+ */
+ private static final DateTimeFormatter dateTimeFormatter =
+ DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSSZ");
+
+ /**
+ * Composite State copy constructor.
+ *
+ * @param compositeState Composite State
+ */
+ public CompositeState(final CompositeState compositeState) {
+ this.cmHandleState = compositeState.getCmHandleState();
+ this.lockReason = compositeState.getLockReason();
+ this.lastUpdateTime = compositeState.getLastUpdateTime();
+ this.dataSyncEnabled = compositeState.getDataSyncEnabled();
+ this.dataStores = compositeState.getDataStores();
+ }
+
+
+ /**
+ * This will specify the latest lock reason for a specific cm handle. If a cm handle is in a state other than LOCKED
+ * it specifies the last lock reason.
+ * This can be used to track retry attempts as part of the lock details.
+ */