Record Class PostgresReplicationAdmin.ResetSlotResult
java.lang.Object
java.lang.Record
br.com.vantroba.bi.transporte.powersync.PostgresReplicationAdmin.ResetSlotResult
- Record Components:
activePidTerminated- PID do backend que segurava o slot (null se slot estava livre)lsnPre- LSN do slot antes do reset (null se slot não existia)lsnPost- LSN do slot recém-criado (null em caso de erro entre create e consulta)
- Enclosing class:
PostgresReplicationAdmin
public static record PostgresReplicationAdmin.ResetSlotResult(Integer activePidTerminated, String lsnPre, String lsnPost)
extends Record
Resultado do
PostgresReplicationAdmin.resetSlot(String, String).-
Constructor Summary
ConstructorsConstructorDescriptionResetSlotResult(Integer activePidTerminated, String lsnPre, String lsnPost) Creates an instance of aResetSlotResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactivePidTerminatedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.lsnPost()Returns the value of thelsnPostrecord component.lsnPre()Returns the value of thelsnPrerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResetSlotResult
Creates an instance of aResetSlotResultrecord class.- Parameters:
activePidTerminated- the value for theactivePidTerminatedrecord componentlsnPre- the value for thelsnPrerecord componentlsnPost- the value for thelsnPostrecord 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). -
activePidTerminated
Returns the value of theactivePidTerminatedrecord component.- Returns:
- the value of the
activePidTerminatedrecord component
-
lsnPre
-
lsnPost
-