Example usage for javafx.util Duration hours

List of usage examples for javafx.util Duration hours

Introduction

In this page you can find the example usage for javafx.util Duration hours.

Prototype

public static Duration hours(double h) 

Source Link

Document

Factory method that returns a Duration instance representing the specified number of hours.

Usage

From source file:ninja.eivind.hotsreplayuploader.services.HeroService.java

public HeroService() {
    LOG.info("Instantiating " + getClass().getSimpleName());
    setPeriod(Duration.hours(2));
    setBackoffStrategy(param -> param.getPeriod().multiply(1.25));
    LOG.info("Instantiated " + getClass().getSimpleName());
}