Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In order to do so, it is proposed to add a new boolean member variable mustQueueDroppedEvents to the AbstractGatewaySender that will tell if the primary gateway sender must store dropped events or not.

  • This member variable must mustQueueDroppedEvents must be set to false (do not store dropped events) in the primary and secondary gateway sender instances:
    • At gateway sender creation if the --manual-start option was used.
    • Right after stopping the gateway sender using the gfsh stop gateway sender command.
  • This member variable must mustQueueDroppedEvents must be set to true (store dropped events) in the primary and secondary gateway sender instances:
    • At gateway sender creation if the --manual-start option was not used or set to false.
    • Right before a start gateway sender gfsh command is executed.

The start gateway sender and stop gateway sender gfsh commands would be modified as follows in order to set the member value of the gateway sender accordinglyvalue of mustQueueDroppedEvents as follows:

  • Code will be added at the end of the current stop gateway sender gfsh command which will set mustQueueDroppedEvents to false the new member variable (after the gateway senders have been stopped).
  • Code will be added at the beginning of the current start gateway sender gfsh command which will set mustQueueDroppedEvents to true the new member variable (before the gateway senders are started).

...