Package io.micronaut.microstream.rest
Class MicroStreamRestControllerConfigurationProperties
java.lang.Object
io.micronaut.microstream.rest.MicroStreamRestControllerConfigurationProperties
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable
,MicroStreamRestControllerConfiguration
@ConfigurationProperties("microstream.rest")
public class MicroStreamRestControllerConfigurationProperties
extends Object
implements MicroStreamRestControllerConfiguration
Configuration properties for the
MicroStreamRestController
.- Since:
- 1.0.0
- Author:
- Tim Yates
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull String
getPath()
boolean
void
setEnabled
(boolean enabled) EnablesMicroStreamRestController
.void
Path to theMicroStreamRestController
.
-
Field Details
-
PREFIX
- See Also:
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLEDThe default enable value.- See Also:
-
DEFAULT_PATH
The default path.- See Also:
-
-
Constructor Details
-
MicroStreamRestControllerConfigurationProperties
public MicroStreamRestControllerConfigurationProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
- Returns:
- true if you want to enable the
MicroStreamRestController
-
getPath
- Specified by:
getPath
in interfaceMicroStreamRestControllerConfiguration
- Returns:
- path to the
MicroStreamRestController
. Default value "microstream"
-
setEnabled
public void setEnabled(boolean enabled) EnablesMicroStreamRestController
. Default value false- Parameters:
enabled
- True if it is enabled
-
setPath
Path to theMicroStreamRestController
. Default value "microstream"- Parameters:
path
- The path
-