ferencerdei commented on code in PR #6733:
URL: https://github.com/apache/nifi/pull/6733#discussion_r1067820986


##########
c2/c2-client-bundle/c2-client-service/src/main/java/org/apache/nifi/c2/client/service/operation/OperationQueue.java:
##########
@@ -0,0 +1,80 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.nifi.c2.client.service.operation;
+
+import java.io.Serializable;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import org.apache.nifi.c2.protocol.api.C2Operation;
+
+public class OperationQueue implements Serializable {
+    private static final long serialVersionUID = 1L;
+
+    private C2Operation currentOperation;
+    private List<C2Operation> remainingOperations;
+
+    public OperationQueue() {
+    }
+
+    public OperationQueue(C2Operation currentOperation, List<C2Operation> 
remainingOperations) {
+        this.currentOperation = currentOperation;
+        this.remainingOperations = remainingOperations == null ? 
Collections.emptyList() : remainingOperations;
+    }
+
+    public C2Operation getCurrentOperation() {
+        return currentOperation;
+    }
+
+    public List<C2Operation> getRemainingOperations() {
+        return remainingOperations;
+    }
+
+    private void setCurrentOperation(C2Operation currentOperation) {

Review Comment:
   Sorry, incorrect idea settings and I missed it. Changed to public



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@nifi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to