• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nats-io / nats.java / #2170

09 Sep 2025 12:23PM UTC coverage: 95.143% (-0.3%) from 95.433%
#2170

push

github

web-flow
Merge pull request #1415 from nats-io/stats-options-review

Statistics classes improvements

3 of 40 new or added lines in 3 files covered. (7.5%)

4 existing lines in 2 files now uncovered.

11970 of 12581 relevant lines covered (95.14%)

0.95 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

2.7
/src/main/java/io/nats/client/impl/NoOpStatistics.java
1
// Copyright 2015-2018 The NATS Authors
2
// Licensed under the Apache License, Version 2.0 (the "License");
3
// you may not use this file except in compliance with the License.
4
// You may obtain a copy of the License at:
5
//
6
// http://www.apache.org/licenses/LICENSE-2.0
7
//
8
// Unless required by applicable law or agreed to in writing, software
9
// distributed under the License is distributed on an "AS IS" BASIS,
10
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
// See the License for the specific language governing permissions and
12
// limitations under the License.
13

14
package io.nats.client.impl;
15

16
import io.nats.client.StatisticsCollector;
17

18
public class NoOpStatistics implements StatisticsCollector {
1✔
NEW
19
    @Override public void setAdvancedTracking(boolean trackAdvanced) {}
×
NEW
20
    @Override public void incrementPingCount() {}
×
NEW
21
    @Override public void incrementReconnects() {}
×
NEW
22
    @Override public void incrementDroppedCount() {}
×
NEW
23
    @Override public void incrementOkCount() {}
×
NEW
24
    @Override public void incrementErrCount() {}
×
NEW
25
    @Override public void incrementExceptionCount() {}
×
NEW
26
    @Override public void incrementRequestsSent() {}
×
NEW
27
    @Override public void incrementRepliesReceived() {}
×
NEW
28
    @Override public void incrementDuplicateRepliesReceived() {}
×
NEW
29
    @Override public void incrementOrphanRepliesReceived() {}
×
NEW
30
    @Override public void incrementInMsgs() {}
×
NEW
31
    @Override public void incrementOutMsgs() {}
×
NEW
32
    @Override public void incrementInBytes(long bytes) {}
×
NEW
33
    @Override public void incrementOutBytes(long bytes) {}
×
NEW
34
    @Override public void incrementFlushCounter() {}
×
NEW
35
    @Override public void incrementOutstandingRequests() {}
×
NEW
36
    @Override public void decrementOutstandingRequests() {}
×
NEW
37
    @Override public void registerRead(long bytes) {}
×
NEW
38
    @Override public void registerWrite(long bytes) {}
×
NEW
39
    @Override public long getPings() { return 0; }
×
NEW
40
    @Override public long getReconnects() { return 0; }
×
NEW
41
    @Override public long getDroppedCount() { return 0; }
×
NEW
42
    @Override public long getOKs() { return 0; }
×
NEW
43
    @Override public long getErrs() { return 0; }
×
NEW
44
    @Override public long getExceptions() { return 0; }
×
NEW
45
    @Override public long getRequestsSent() { return 0; }
×
NEW
46
    @Override public long getRepliesReceived() { return 0; }
×
NEW
47
    @Override public long getDuplicateRepliesReceived() { return 0; }
×
NEW
48
    @Override public long getOrphanRepliesReceived() { return 0; }
×
NEW
49
    @Override public long getInMsgs() { return 0; }
×
NEW
50
    @Override public long getOutMsgs() { return 0; }
×
NEW
51
    @Override public long getInBytes() { return 0; }
×
NEW
52
    @Override public long getOutBytes() { return 0; }
×
NEW
53
    @Override public long getFlushCounter() { return 0; }
×
NEW
54
    @Override public long getOutstandingRequests() { return 0; }
×
55
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc