Class BinaryEntryPointContext
java.lang.Object
uk.co.real_logic.artio.binary_entrypoint.BinaryEntryPointContext
- All Implemented Interfaces:
uk.co.real_logic.artio.fixp.FixPContext,uk.co.real_logic.artio.fixp.InternalFixPContext
public class BinaryEntryPointContext
extends Object
implements uk.co.real_logic.artio.fixp.InternalFixPContext
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBinaryEntryPointContext(long sessionID, long sessionVerID, long timestampInNs, long enteringFirm, boolean fromNegotiate, String credentials, String clientIP, String clientAppName, String clientAppVersion) -
Method Summary
Modifier and TypeMethodDescriptionuk.co.real_logic.artio.fixp.FixPFirstMessageResponsecheckAccept(uk.co.real_logic.artio.fixp.FixPContext fixPContext, boolean ignoreFromNegotiate) uk.co.real_logic.artio.fixp.FixPFirstMessageResponseIf this context was created from a Negotiate message then this method return the clientAppName field.If this context was created from a Negotiate message then this method return the clientAppVersion field.clientIP()If this context was created from a Negotiate message then this method return the clientIP field.intcompareVersion(uk.co.real_logic.artio.fixp.FixPContext fixPContext) longbooleanstatic BinaryEntryPointContextforNextSessionVerID(long sessionId, long nanoTime) booleaninthashCode()booleanvoidinitiatorReconnect(boolean reestablishConnection) key()voidvoidbooleanuk.co.real_logic.artio.messages.FixPProtocolTypelonglonglonglongtoString()void
-
Field Details
-
ANY_FIRM_ID
public static final long ANY_FIRM_ID- See Also:
-
-
Constructor Details
-
BinaryEntryPointContext
-
-
Method Details
-
forNextSessionVerID
-
sessionID
public long sessionID() -
sessionVerID
public long sessionVerID() -
requestTimestampInNs
public long requestTimestampInNs() -
enteringFirm
public long enteringFirm() -
fromNegotiate
public boolean fromNegotiate()- Specified by:
fromNegotiatein interfaceuk.co.real_logic.artio.fixp.FixPContext
-
key
- Specified by:
keyin interfaceuk.co.real_logic.artio.fixp.FixPContext
-
checkAccept
public uk.co.real_logic.artio.fixp.FixPFirstMessageResponse checkAccept(uk.co.real_logic.artio.fixp.FixPContext fixPContext, boolean ignoreFromNegotiate) - Specified by:
checkAcceptin interfaceuk.co.real_logic.artio.fixp.InternalFixPContext
-
compareVersion
public int compareVersion(uk.co.real_logic.artio.fixp.FixPContext fixPContext) - Specified by:
compareVersionin interfaceuk.co.real_logic.artio.fixp.FixPContext
-
initiatorReconnect
public void initiatorReconnect(boolean reestablishConnection) - Specified by:
initiatorReconnectin interfaceuk.co.real_logic.artio.fixp.InternalFixPContext
-
onInitiatorNegotiateResponse
public boolean onInitiatorNegotiateResponse()- Specified by:
onInitiatorNegotiateResponsein interfaceuk.co.real_logic.artio.fixp.InternalFixPContext
-
onInitiatorDisconnect
public void onInitiatorDisconnect()- Specified by:
onInitiatorDisconnectin interfaceuk.co.real_logic.artio.fixp.InternalFixPContext
-
protocolType
public uk.co.real_logic.artio.messages.FixPProtocolType protocolType()- Specified by:
protocolTypein interfaceuk.co.real_logic.artio.fixp.FixPContext
-
onEndSequence
public void onEndSequence()- Specified by:
onEndSequencein interfaceuk.co.real_logic.artio.fixp.InternalFixPContext
-
credentials
-
clientIP
If this context was created from a Negotiate message then this method return the clientIP field. If the context was created from an Establish message orforNextSessionVerID(long, long)then it will be"".- Returns:
- the negotiate message's clientIP field or "".
-
clientAppName
If this context was created from a Negotiate message then this method return the clientAppName field. If the context was created from an Establish message orforNextSessionVerID(long, long)then it will be"".- Returns:
- the negotiate message's clientAppName field or "".
-
clientAppVersion
If this context was created from a Negotiate message then this method return the clientAppVersion field. If the context was created from an Establish message orforNextSessionVerID(long, long)then it will be"".- Returns:
- the negotiate message's clientAppVersion field or "".
-
checkFirstConnect
public uk.co.real_logic.artio.fixp.FixPFirstMessageResponse checkFirstConnect() -
surrogateSessionId
public long surrogateSessionId()- Specified by:
surrogateSessionIdin interfaceuk.co.real_logic.artio.fixp.InternalFixPContext
-
equals
-
hashCode
public int hashCode() -
toString
-
hasUnsentMessagesAtNegotiate
public boolean hasUnsentMessagesAtNegotiate()- Specified by:
hasUnsentMessagesAtNegotiatein interfaceuk.co.real_logic.artio.fixp.InternalFixPContext
-
validate
- Specified by:
validatein interfaceuk.co.real_logic.artio.fixp.InternalFixPContext
-