Package io.fluxcapacitor.javaclient.web
Record Class DefaultSocketSession
java.lang.Object
java.lang.Record
io.fluxcapacitor.javaclient.web.DefaultSocketSession
- All Implemented Interfaces:
SocketSession
public record DefaultSocketSession(String sessionId, String target, ResultGateway webResponseGateway)
extends Record
implements SocketSession
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultSocketSession(String sessionId, String target, ResultGateway webResponseGateway) Creates an instance of aDefaultSocketSessionrecord 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.sendMessage(Object value, Guarantee guarantee) Returns the value of thesessionIdrecord component.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thewebResponseGatewayrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.fluxcapacitor.javaclient.web.SocketSession
close, close, close, sendMessage, sendPing
-
Constructor Details
-
DefaultSocketSession
Creates an instance of aDefaultSocketSessionrecord class.- Parameters:
sessionId- the value for thesessionIdrecord componenttarget- the value for thetargetrecord componentwebResponseGateway- the value for thewebResponseGatewayrecord component
-
-
Method Details
-
sendMessage
- Specified by:
sendMessagein interfaceSocketSession
-
sendPing
- Specified by:
sendPingin interfaceSocketSession
-
close
- Specified by:
closein interfaceSocketSession
-
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). -
sessionId
Returns the value of thesessionIdrecord component.- Specified by:
sessionIdin interfaceSocketSession- Returns:
- the value of the
sessionIdrecord component
-
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
webResponseGateway
Returns the value of thewebResponseGatewayrecord component.- Returns:
- the value of the
webResponseGatewayrecord component
-