@ConfigurationProperties(value="micronaut.heartbeat") public class HeartbeatConfiguration extends Object implements Toggleable
| Modifier and Type | Field and Description | 
|---|---|
static boolean | 
DEFAULT_ENABLED
The default enable value. 
 | 
static int | 
DEFAULT_INTERVAL_SECONDS
The default interval seconds. 
 | 
| Constructor and Description | 
|---|
HeartbeatConfiguration()  | 
| Modifier and Type | Method and Description | 
|---|---|
Duration | 
getInterval()  | 
boolean | 
isEnabled()  | 
void | 
setEnabled(boolean enabled)
Default value (true). 
 | 
void | 
setInterval(Duration interval)
Default value (15 seconds). 
 | 
public static final boolean DEFAULT_ENABLED
public static final int DEFAULT_INTERVAL_SECONDS
public Duration getInterval()
HeartbeatEvent instancespublic void setInterval(Duration interval)
interval - The interval to publish HeartbeatEvent instancespublic boolean isEnabled()
isEnabled in interface ToggleableHeartbeatEvent event instances should be published by the serverpublic void setEnabled(boolean enabled)
enabled - Enable the publish of HeartbeatEvent event instances