Record Class GetStreamResponse
java.lang.Object
java.lang.Record
org.infinispan.server.hotrod.streaming.GetStreamResponse
public record GetStreamResponse(int id, io.netty.buffer.ByteBuf value, boolean complete)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionGetStreamResponse(int id, io.netty.buffer.ByteBuf value, boolean complete) Creates an instance of aGetStreamResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleancomplete()Returns the value of thecompleterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.io.netty.buffer.ByteBufvalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
GetStreamResponse
public GetStreamResponse(int id, io.netty.buffer.ByteBuf value, boolean complete) Creates an instance of aGetStreamResponserecord class.- Parameters:
id- the value for theidrecord componentvalue- the value for thevaluerecord componentcomplete- the value for thecompleterecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
value
public io.netty.buffer.ByteBuf value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
complete
public boolean complete()Returns the value of thecompleterecord component.- Returns:
- the value of the
completerecord component
-