Record Class LockingDatabase.InsertInstance
java.lang.Object
java.lang.Record
com.zenith.database.LockingDatabase.InsertInstance
- Enclosing class:
LockingDatabase
-
Constructor Summary
ConstructorsConstructorDescriptionInsertInstance(Instant instant, @Nullable Runnable redisQuery, org.jdbi.v3.core.HandleConsumer<?> query) Creates an instance of aInsertInstancerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.instant()Returns the value of theinstantrecord component.org.jdbi.v3.core.HandleConsumer<?> query()Returns the value of thequeryrecord component.@Nullable RunnableReturns the value of theredisQueryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InsertInstance
public InsertInstance(Instant instant, @Nullable Runnable redisQuery, org.jdbi.v3.core.HandleConsumer<?> query) Creates an instance of aInsertInstancerecord class.- Parameters:
instant- the value for theinstantrecord componentredisQuery- the value for theredisQueryrecord componentquery- the value for thequeryrecord 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). -
instant
Returns the value of theinstantrecord component.- Returns:
- the value of the
instantrecord component
-
redisQuery
Returns the value of theredisQueryrecord component.- Returns:
- the value of the
redisQueryrecord component
-
query
public org.jdbi.v3.core.HandleConsumer<?> query()Returns the value of thequeryrecord component.- Returns:
- the value of the
queryrecord component
-