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

wz2cool / local-queue / #30

31 Jan 2025 03:20PM UTC coverage: 91.882% (+0.01%) from 91.871%
#30

push

wz2cool
move to cycle

17 of 18 new or added lines in 3 files covered. (94.44%)

498 of 542 relevant lines covered (91.88%)

0.92 hits per line

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

66.67
/src/main/java/com/github/wz2cool/localqueue/helper/ChronicleQueueHelper.java
1
package com.github.wz2cool.localqueue.helper;
2

3
import net.openhft.chronicle.core.time.SystemTimeProvider;
4
import net.openhft.chronicle.queue.DefaultCycleCalculator;
5
import net.openhft.chronicle.queue.RollCycle;
6

7
/**
8
 * Chronicle Queue Helper
9
 *
10
 * @author frank
11
 */
NEW
12
public class ChronicleQueueHelper {
×
13

14
    public static int cycle(final RollCycle rollCycle, final long timestamp) {
15
        long offsetMillis = System.currentTimeMillis() - timestamp;
1✔
16
        return DefaultCycleCalculator.INSTANCE.currentCycle(rollCycle, SystemTimeProvider.INSTANCE, offsetMillis);
1✔
17
    }
18
}
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