Class NewCheck
java.lang.Object
io.micronaut.discovery.consul.client.v1.NewCheck
- All Implemented Interfaces:
Check
@Deprecated(forRemoval=true,
since="4.1.0")
public abstract class NewCheck
extends Object
implements Check
Deprecated, for removal: This API element is subject to removal in a future version.
Base class for all checks.
- Since:
- 1.0
- Author:
- Graeme Rocher
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.discovery.consul.client.v1.Check
Check.Status -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.deregisterCriticalServiceAfter(String interval) Deprecated, for removal: This API element is subject to removal in a future version.deregisterCriticalServiceAfter(Duration interval) Deprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.getID()Deprecated, for removal: This API element is subject to removal in a future version.getName()Deprecated, for removal: This API element is subject to removal in a future version.getNotes()Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.inthashCode()Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.protected voidsetDeregisterCriticalServiceAfter(String deregisterCriticalServiceAfter) Deprecated, for removal: This API element is subject to removal in a future version.protected voidDeprecated, for removal: This API element is subject to removal in a future version.protected voidDeprecated, for removal: This API element is subject to removal in a future version.protected voidDeprecated, for removal: This API element is subject to removal in a future version.status()Deprecated, for removal: This API element is subject to removal in a future version.status(Check.Status status) Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
NewCheck
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
name- The name
-
NewCheck
protected NewCheck()Deprecated, for removal: This API element is subject to removal in a future version.Default constructor.
-
-
Method Details
-
getName
Deprecated, for removal: This API element is subject to removal in a future version. -
getID
Deprecated, for removal: This API element is subject to removal in a future version. -
getNotes
Deprecated, for removal: This API element is subject to removal in a future version. -
getStatus
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- The health status
-
status
Deprecated, for removal: This API element is subject to removal in a future version. -
deregisterCriticalServiceAfter
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- The deregisterCriticalServiceAfter as a
Duration
-
getDeregisterCriticalServiceAfter
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- The deregisterCriticalServiceAfter as a
Optional
-
deregisterCriticalServiceAfter
Deprecated, for removal: This API element is subject to removal in a future version. -
deregisterCriticalServiceAfter
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
interval- The deregisterCriticalServiceAfter as a string- Returns:
- The
NewCheckinstance
-
id
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
ID- The ID of the check- Returns:
- The deregisterCriticalServiceAfter as a
Duration
-
status
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
status- TheCheck.Statusof the check- Returns:
- The deregisterCriticalServiceAfter as a
Duration
-
notes
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
notes- The human readable notes- Returns:
- The deregisterCriticalServiceAfter as a
Duration
-
equals
Deprecated, for removal: This API element is subject to removal in a future version. -
hashCode
public int hashCode()Deprecated, for removal: This API element is subject to removal in a future version. -
setName
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
name- The name
-
setDeregisterCriticalServiceAfter
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
deregisterCriticalServiceAfter- Service to de-regsiter after
-
setStatus
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
status- The status
-
setNotes
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
notes- The notes
-
ConsulCheckinstead.