1919import io .nats .client .support .Status ;
2020
2121import static io .nats .client .impl .MessageManager .ManageResult .*;
22- import static io .nats .client .support .NatsJetStreamConstants .*;
22+ import static io .nats .client .support .NatsJetStreamConstants .NATS_PENDING_BYTES ;
23+ import static io .nats .client .support .NatsJetStreamConstants .NATS_PENDING_MESSAGES ;
2324import static io .nats .client .support .Status .*;
2425
2526class PullMessageManager extends MessageManager {
@@ -29,7 +30,7 @@ class PullMessageManager extends MessageManager {
2930 protected boolean trackingBytes ;
3031 protected boolean raiseStatusWarnings ;
3132 protected PullManagerObserver pullManagerObserver ;
32- protected String currentPinId ;
33+ // protected String currentPinId;
3334
3435 protected PullMessageManager (NatsConnection conn , SubscribeOptions so , boolean syncMode ) {
3536 super (conn , so , syncMode );
@@ -150,12 +151,12 @@ protected ManageResult manage(Message msg) {
150151 return manageStatus (msg );
151152 }
152153
153- @ Override
154- protected void subTrackJsMessage (Message msg ) {
155- if (msg .hasHeaders ()) {
156- currentPinId = msg .getHeaders ().getFirst (NATS_PIN_ID_HDR );
157- }
158- }
154+ // @Override
155+ // protected void subTrackJsMessage(Message msg) {
156+ // if (msg.hasHeaders()) {
157+ // currentPinId = msg.getHeaders().getFirst(NATS_PIN_ID_HDR);
158+ // }
159+ // }
159160
160161 protected ManageResult manageStatus (Message msg ) {
161162 Status status = msg .getStatus ();
@@ -187,9 +188,9 @@ protected ManageResult manageStatus(Message msg) {
187188 }
188189 break ;
189190
190- case PIN_ERROR_CODE :
191- currentPinId = null ;
192- return STATUS_TERMINUS ;
191+ // case PIN_ERROR_CODE:
192+ // currentPinId = null;
193+ // return STATUS_TERMINUS;
193194 }
194195
195196 // All unknown 409s are errors, since that basically means the client is not aware of them.
0 commit comments