Package

org.sackfix.session

heartbeat

Permalink

package heartbeat

Visibility
  1. Public
  2. All

Type Members

  1. case class MsgMonitor(heartbeatMs: Long, transmissionDelayMs: Long) extends Product with Serializable

    Permalink
  2. trait SessionTimeoutHandler extends AnyRef

    Permalink
  3. trait SfHeartbeatListener extends AnyRef

    Permalink

    The listener will be called every durationMs - typically every second.

    The listener will be called every durationMs - typically every second. Its up to the listener to decide if its own timeout etc needs to fire

  4. class SfHeartbeater extends Runnable

    Permalink

    This was written first, flung an actor on the front

  5. class SfHeartbeaterActor extends Actor

    Permalink

    When people register with me for events that fire they pass in their own listeners.

    When people register with me for events that fire they pass in their own listeners. These listeners will be executed within my Thread - so they are in charge of Telling other actors to do stuff.

  6. trait SfSessionSchedulListener extends AnyRef

    Permalink

    Created by Jonathan during 2017.

  7. case class SfSessionScheduler(startTime: LocalTime, endTime: LocalTime, listener: SfSessionSchedulListener) extends SfHeartbeatListener with Product with Serializable

    Permalink
  8. class SfSessionTimeHandler extends SfHeartbeatListener

    Permalink

Value Members

  1. object SessionTimeoutHandler

    Permalink

    1.

    1. If we have done nothing for heartbeat period, send a heartbeat. 2. If the counterparty has done nothing for heartbeat + a reasonable time send a TestRequest. Wait for heartbeat*2 and if no answer then logout with LogoutMessageType= "Test Request Timeout"

  2. object SfHeartbeaterActor

    Permalink

    Simply tick every period and call back to the listeners WHY NOT DO AS AN ACTOR? Maybe I should have.

Ungrouped