exceptionfactory commented on code in PR #6040:
URL: https://github.com/apache/nifi/pull/6040#discussion_r873944162


##########
nifi-nar-bundles/nifi-standard-services/nifi-distributed-cache-services-bundle/nifi-distributed-cache-server/src/main/java/org/apache/nifi/distributed/cache/server/protocol/MapValueResponse.java:
##########
@@ -14,39 +14,39 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.apache.nifi.remote.io.socket.ssl;
+package org.apache.nifi.distributed.cache.server.protocol;
 
-import java.io.IOException;
-import java.io.OutputStream;
+/**
+ * Map Value Response
+ */
+public class MapValueResponse {
+    private final int length;
 
-public class SSLSocketChannelOutputStream extends OutputStream {
+    private final byte[] value;
 
-    private final SSLSocketChannel channel;
+    private Long revision;
 
-    public SSLSocketChannelOutputStream(final SSLSocketChannel channel) {
-        this.channel = channel;
+    public MapValueResponse(
+            final int length,
+            final byte[] value
+    ) {
+        this.length = length;
+        this.value = value;
     }
 
-    @Override
-    public void write(final int b) throws IOException {
-        channel.write(b);
+    public int getLength() {
+        return length;
     }
 
-    @Override
-    public void write(byte[] b) throws IOException {
-        channel.write(b);
+    public byte[] getValue() {
+        return value;
     }
 
-    @Override
-    public void write(byte[] b, int off, int len) throws IOException {
-        channel.write(b, off, len);
+    public void setRevision(final Long revision) {

Review Comment:
   Thanks, that's a good point, this should be removed.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to