Record Class DevServiceConfig
java.lang.Object
java.lang.Record
io.fluxzero.devserver.DevServiceConfig
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordProtocol-independent readiness configuration. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncommand()Returns the value of thecommandrecord component.Returns the value of thedirectoryrecord component.Returns the value of theenvironmentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.ports()Returns the value of theportsrecord component.Returns the value of thereadinessrecord component.Returns the value of thestopCommandrecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Field Details
-
DEFAULT_STARTUP_TIMEOUT
-
-
Constructor Details
-
DevServiceConfig
public DevServiceConfig(String command, String stopCommand, String url, String directory, Map<String, Integer> ports, Map<String, String> environment, DevServiceConfig.Readiness readiness) Creates an instance of aDevServiceConfigrecord class.- Parameters:
command- the value for thecommandrecord componentstopCommand- the value for thestopCommandrecord componenturl- the value for theurlrecord componentdirectory- the value for thedirectoryrecord componentports- the value for theportsrecord componentenvironment- the value for theenvironmentrecord componentreadiness- the value for thereadinessrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
command
Returns the value of thecommandrecord component.- Returns:
- the value of the
commandrecord component
-
stopCommand
Returns the value of thestopCommandrecord component.- Returns:
- the value of the
stopCommandrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
directory
Returns the value of thedirectoryrecord component.- Returns:
- the value of the
directoryrecord component
-
ports
-
environment
-
readiness
Returns the value of thereadinessrecord component.- Returns:
- the value of the
readinessrecord component
-