1 2 3 4 5 6 7 8 9 10 11 12 13 14
package com.it_jaros.jscanner; import java.util.List; public record Scan(List<String> hosts, String ports, ScanState state) { public List<ScanResult> getResults() { return this.state.getSnapshotOfScanResults(); } public int getPeakConcurrentConnects() { return this.state.getCounter().max(); } }