Record Class FixSession.Config
java.lang.Object
java.lang.Record
com.quantfinlib.fix.FixSession.Config
- Enclosing class:
FixSession
-
Constructor Summary
ConstructorsConstructorDescriptionConfig(String senderCompId, String targetCompId, int heartbeatSeconds, String username, String password) Config(String senderCompId, String targetCompId, int heartbeatSeconds, String username, String password, boolean resetOnLogon) Creates an instance of aConfigrecord 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.intReturns the value of theheartbeatSecondsrecord component.password()Returns the value of thepasswordrecord component.booleanReturns the value of theresetOnLogonrecord component.Returns the value of thesenderCompIdrecord component.Returns the value of thetargetCompIdrecord component.final StringtoString()Returns a string representation of this record class.username()Returns the value of theusernamerecord component.withCredentials(String username, String password) Adds Username(553)/Password(554) to the initiator's Logon.Initiator sends ResetSeqNumFlag(141)=Y on Logon and restarts BOTH sequence counters at 1 (persisted) — the standard clean-slate reconnect when the two sides' stores have diverged beyond repair.
-
Constructor Details
-
Config
public Config(String senderCompId, String targetCompId, int heartbeatSeconds, String username, String password, boolean resetOnLogon) Creates an instance of aConfigrecord class.- Parameters:
senderCompId- the value for thesenderCompIdrecord componenttargetCompId- the value for thetargetCompIdrecord componentheartbeatSeconds- the value for theheartbeatSecondsrecord componentusername- the value for theusernamerecord componentpassword- the value for thepasswordrecord componentresetOnLogon- the value for theresetOnLogonrecord component
-
Config
-
Config
-
-
Method Details
-
withCredentials
Adds Username(553)/Password(554) to the initiator's Logon. -
withResetOnLogon
Initiator sends ResetSeqNumFlag(141)=Y on Logon and restarts BOTH sequence counters at 1 (persisted) — the standard clean-slate reconnect when the two sides' stores have diverged beyond repair. The peer, per FIX 4.4, resets its own counters and confirms with 141=Y; any store history is abandoned, so messages sent before the reset are no longer recoverable by ResendRequest. -
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. -
senderCompId
Returns the value of thesenderCompIdrecord component.- Returns:
- the value of the
senderCompIdrecord component
-
targetCompId
Returns the value of thetargetCompIdrecord component.- Returns:
- the value of the
targetCompIdrecord component
-
heartbeatSeconds
public int heartbeatSeconds()Returns the value of theheartbeatSecondsrecord component.- Returns:
- the value of the
heartbeatSecondsrecord component
-
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
password
Returns the value of thepasswordrecord component.- Returns:
- the value of the
passwordrecord component
-
resetOnLogon
public boolean resetOnLogon()Returns the value of theresetOnLogonrecord component.- Returns:
- the value of the
resetOnLogonrecord component
-