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 Details

  • Constructor Details

    • BinaryEntryPointContext

      public BinaryEntryPointContext(long sessionID, long sessionVerID, long timestampInNs, long enteringFirm, boolean fromNegotiate, String credentials, String clientIP, String clientAppName, String clientAppVersion)
  • Method Details

    • forNextSessionVerID

      public static BinaryEntryPointContext forNextSessionVerID(long sessionId, long nanoTime)
    • sessionID

      public long sessionID()
    • sessionVerID

      public long sessionVerID()
    • requestTimestampInNs

      public long requestTimestampInNs()
    • enteringFirm

      public long enteringFirm()
    • fromNegotiate

      public boolean fromNegotiate()
      Specified by:
      fromNegotiate in interface uk.co.real_logic.artio.fixp.FixPContext
    • key

      public BinaryEntryPointKey key()
      Specified by:
      key in interface uk.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:
      checkAccept in interface uk.co.real_logic.artio.fixp.InternalFixPContext
    • compareVersion

      public int compareVersion(uk.co.real_logic.artio.fixp.FixPContext fixPContext)
      Specified by:
      compareVersion in interface uk.co.real_logic.artio.fixp.FixPContext
    • initiatorReconnect

      public void initiatorReconnect(boolean reestablishConnection)
      Specified by:
      initiatorReconnect in interface uk.co.real_logic.artio.fixp.InternalFixPContext
    • onInitiatorNegotiateResponse

      public boolean onInitiatorNegotiateResponse()
      Specified by:
      onInitiatorNegotiateResponse in interface uk.co.real_logic.artio.fixp.InternalFixPContext
    • onInitiatorDisconnect

      public void onInitiatorDisconnect()
      Specified by:
      onInitiatorDisconnect in interface uk.co.real_logic.artio.fixp.InternalFixPContext
    • protocolType

      public uk.co.real_logic.artio.messages.FixPProtocolType protocolType()
      Specified by:
      protocolType in interface uk.co.real_logic.artio.fixp.FixPContext
    • onEndSequence

      public void onEndSequence()
      Specified by:
      onEndSequence in interface uk.co.real_logic.artio.fixp.InternalFixPContext
    • credentials

      public String credentials()
    • clientIP

      public String 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 or forNextSessionVerID(long, long) then it will be "".
      Returns:
      the negotiate message's clientIP field or "".
    • clientAppName

      public String 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 or forNextSessionVerID(long, long) then it will be "".
      Returns:
      the negotiate message's clientAppName field or "".
    • clientAppVersion

      public String 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 or forNextSessionVerID(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:
      surrogateSessionId in interface uk.co.real_logic.artio.fixp.InternalFixPContext
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hasUnsentMessagesAtNegotiate

      public boolean hasUnsentMessagesAtNegotiate()
      Specified by:
      hasUnsentMessagesAtNegotiate in interface uk.co.real_logic.artio.fixp.InternalFixPContext
    • validate

      public void validate(Enum<?> rejectCode)
      Specified by:
      validate in interface uk.co.real_logic.artio.fixp.InternalFixPContext