Package com.opencqrs.esdb.client
Record Class Marshaller.QueryResponseElement.Row
java.lang.Object
java.lang.Record
com.opencqrs.esdb.client.Marshaller.QueryResponseElement.Row
- Record Components:
deferredHandler
- the deferred bi-consumer
- All Implemented Interfaces:
Marshaller.QueryResponseElement
- Enclosing interface:
Marshaller.QueryResponseElement
public static record Marshaller.QueryResponseElement.Row(BiConsumer<RowHandler,ErrorHandler> deferredHandler)
extends Record
implements Marshaller.QueryResponseElement
Represents a
row
returned from the event store, which may be processed by the deferred
BiConsumer
. The consumer is needed, because rows returned from the event store may still fail to
deserialize correctly to the target type, as defined by RowHandler
.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.opencqrs.esdb.client.Marshaller.QueryResponseElement
Marshaller.QueryResponseElement.Error, Marshaller.QueryResponseElement.Row
-
Constructor Summary
ConstructorsConstructorDescriptionRow
(BiConsumer<RowHandler, ErrorHandler> deferredHandler) Creates an instance of aRow
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedeferredHandler
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Row
Creates an instance of aRow
record class.- Parameters:
deferredHandler
- the value for thedeferredHandler
record component
-
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
deferredHandler
Returns the value of thedeferredHandler
record component.- Returns:
- the value of the
deferredHandler
record component
-