Record Class StorageStatus
java.lang.Object
java.lang.Record
dev.itsharshxd.zentrix.api.platform.StorageStatus
- Record Components:
backend- the backend type:"LOCAL","MYSQL"or"MONGODB", or"NONE"while none is runningready- whether it accepts reads and writes nowfallback- whether this is only a stand-in for a configured database that could not be reached; changes made meanwhile are kept for that database where Zentrix can
public record StorageStatus(@NotNull String backend, boolean ready, boolean fallback)
extends Record
The storage Zentrix keeps profiles and balances in, without any connection details.
- Since:
- 1.8.0
-
Constructor Summary
ConstructorsConstructorDescriptionStorageStatus(@NotNull String backend, boolean ready, boolean fallback) Creates an instance of aStorageStatusrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Stringbackend()Returns the value of thebackendrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanfallback()Returns the value of thefallbackrecord component.final inthashCode()Returns a hash code value for this object.booleanready()Returns the value of thereadyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
backend
Returns the value of thebackendrecord component.- Returns:
- the value of the
backendrecord component
-
ready
public boolean ready()Returns the value of thereadyrecord component.- Returns:
- the value of the
readyrecord component
-
fallback
public boolean fallback()Returns the value of thefallbackrecord component.- Returns:
- the value of the
fallbackrecord component
-