package io.trygvis.queue; public class Queue { public final String name; public final long interval; public Queue(String name, long interval) { this.name = name; this.interval = interval; } public Queue withInterval(int interval) { return new Queue(name, interval); } public String toString() { return "Queue{" + "name='" + name + '\'' + ", interval=" + interval + '}'; } }