I tried to create a max Duration in Java 8 by using Duration.ofMillis(Long.MAX_VALUE) but got a long overflow. How would I programmatically get the equivalent of a Duration.MAX_VALUE if it existed?
Edit: The long overflow was likely caused by an attempt to add to the value instead of during construction. Apologies for not having reproducible code.