io.github.qsy7.examples.keep_alive.KeepAliveExample Maven / Gradle / Ivy
// Generated by delombok at Fri Apr 08 15:03:06 EDT 2022
package io.github.qsy7.examples.keep_alive;
import io.github.qsy7.keep_alive.KeepAlive;
import java.time.Duration;
public class KeepAliveExample implements KeepAlive {
protected final String data;
@Override
public Duration getKeepAliveInterval() {
return Duration.ofSeconds(1);
}
@Override
public Duration getKeepAliveDuration() {
return Duration.ofSeconds(5);
}
@java.lang.SuppressWarnings("all")
public String getData() {
return this.data;
}
@java.lang.SuppressWarnings("all")
public KeepAliveExample(final String data) {
this.data = data;
}
}