Record Class ApplicationInstanceIdentity
java.lang.Object
java.lang.Record
org.j7m.middleware.application.api.ApplicationInstanceIdentity
- Record Components:
instanceId- application instance idapplication- application identityruntime- runtime hosting the instanceclassLoaderMode-CLASSPATHor future JPMS modes
public record ApplicationInstanceIdentity(ApplicationInstanceId instanceId, ApplicationIdentity application, RuntimeIdentity runtime, String classLoaderMode)
extends Record
Immutable identity for one active application instance in one runtime.
-
Constructor Summary
ConstructorsConstructorDescriptionApplicationInstanceIdentity(ApplicationInstanceId instanceId, ApplicationIdentity application, RuntimeIdentity runtime, String classLoaderMode) Creates immutable instance identity metadata. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapplicationrecord component.Returns the value of theclassLoaderModerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinstanceIdrecord component.runtime()Returns the value of theruntimerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ApplicationInstanceIdentity
public ApplicationInstanceIdentity(ApplicationInstanceId instanceId, ApplicationIdentity application, RuntimeIdentity runtime, String classLoaderMode) Creates immutable instance identity metadata.
-
-
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). -
instanceId
Returns the value of theinstanceIdrecord component.- Returns:
- the value of the
instanceIdrecord component
-
application
Returns the value of theapplicationrecord component.- Returns:
- the value of the
applicationrecord component
-
runtime
-
classLoaderMode
Returns the value of theclassLoaderModerecord component.- Returns:
- the value of the
classLoaderModerecord component
-