public HealthServiceBuilder addJob(final HealthCheckJob healthCheckJob) { this.getHealthCheckJobs().add(healthCheckJob); return this; }
public HealthServiceBuilder addJob(final String name, final Duration duration, final HealthCheck healthCheck) { this.getHealthCheckJobs().add(new HealthCheckJob(healthCheck, duration, name)); return this; }
public HealthServiceBuilder addJob(final String name, final long duration, final TimeUnit timeUnit, final HealthCheck healthCheck) { this.getHealthCheckJobs().add(new HealthCheckJob(healthCheck, new Duration(duration, timeUnit), name)); return this; }
public HealthService getImplementation() { if (implementation == null) { implementation = new HealthServiceImpl(getStatKeyPrefix(), getReactor(), getTimer(), getStatsCollector(), getRecheckInterval(), getTimeUnit(), getHealthCheckJobs(), getOnFail(), getOnWarn(), getOnCheckIn()); } return implementation; }
public HealthServiceBuilder addJob(final HealthCheckJob healthCheckJob) { this.getHealthCheckJobs().add(healthCheckJob); return this; }
public HealthServiceBuilder addJob(final HealthCheckJob healthCheckJob) { this.getHealthCheckJobs().add(healthCheckJob); return this; }
public HealthServiceBuilder addJob(final String name, final Duration duration, final HealthCheck healthCheck) { this.getHealthCheckJobs().add(new HealthCheckJob(healthCheck, duration, name)); return this; }
public HealthServiceBuilder addJob(final String name, final Duration duration, final HealthCheck healthCheck) { this.getHealthCheckJobs().add(new HealthCheckJob(healthCheck, duration, name)); return this; }
public HealthServiceBuilder addJob(final String name, final long duration, final TimeUnit timeUnit, final HealthCheck healthCheck) { this.getHealthCheckJobs().add(new HealthCheckJob(healthCheck, new Duration(duration, timeUnit), name)); return this; }
public HealthServiceBuilder addJob(final String name, final long duration, final TimeUnit timeUnit, final HealthCheck healthCheck) { this.getHealthCheckJobs().add(new HealthCheckJob(healthCheck, new Duration(duration, timeUnit), name)); return this; }
public HealthService getImplementation() { if (implementation == null) { implementation = new HealthServiceImpl(getStatKeyPrefix(), getReactor(), getTimer(), getStatsCollector(), getRecheckInterval(), getTimeUnit(), getHealthCheckJobs(), getOnFail(), getOnWarn(), getOnCheckIn()); } return implementation; }
public HealthService getImplementation() { if (implementation == null) { implementation = new HealthServiceImpl(getStatKeyPrefix(), getReactor(), getTimer(), getStatsCollector(), getRecheckInterval(), getTimeUnit(), getHealthCheckJobs(), getOnFail(), getOnWarn(), getOnCheckIn()); } return implementation; }