[ 
https://issues.apache.org/jira/browse/ARTEMIS-3850?focusedWorklogId=780860&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-780860
 ]

ASF GitHub Bot logged work on ARTEMIS-3850:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 13/Jun/22 15:13
            Start Date: 13/Jun/22 15:13
    Worklog Time Spent: 10m 
      Work Description: clebertsuconic commented on code in PR #4101:
URL: https://github.com/apache/activemq-artemis/pull/4101#discussion_r895842187


##########
artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/cursor/ReaderContext.java:
##########
@@ -0,0 +1,48 @@
+/*
+ * 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.activemq.artemis.core.paging.cursor;
+
+import org.apache.activemq.artemis.core.paging.impl.Page;
+
+public class ReaderContext {
+
+   Page page;
+   int position;
+   int messageNr;
+
+   public void reset() {
+      position = messageNr = 0;
+   }
+
+   public int getPosition() {
+      return position;
+   }
+
+   public ReaderContext setPosition(int position) {
+      this.position = position;
+      return this;
+   }
+
+   public int getMessageNr() {
+      return messageNr;
+   }
+
+   public ReaderContext setMessageNr(int messageNr) {
+      this.messageNr = messageNr;
+      return this;
+   }

Review Comment:
   this class is actually not used.. removing it





Issue Time Tracking
-------------------

    Worklog Id:     (was: 780860)
    Time Spent: 6h 40m  (was: 6.5h)

> Add Option to read messages into paging based on sizing and eliminate caching
> -----------------------------------------------------------------------------
>
>                 Key: ARTEMIS-3850
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3850
>             Project: ActiveMQ Artemis
>          Issue Type: New Feature
>    Affects Versions: 2.22.0
>            Reporter: Clebert Suconic
>            Assignee: Clebert Suconic
>            Priority: Major
>             Fix For: 2.24.0
>
>          Time Spent: 6h 40m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to