Interface CommandReleaser

  • All Superinterfaces:
    ProcessorService, com.google.common.util.concurrent.Service
    All Known Implementing Classes:
    StreamTcCommandReleaser

    public interface CommandReleaser
    extends ProcessorService
    This is responsible for "releasing" a prepared command. We do this because the prepared command will not have all the necessary attributes such as sequence count and checksum Those need to be computed separately anyway because the command goes into a queue and when it's released the sequence number has to be incremented.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.google.common.util.concurrent.Service

        com.google.common.util.concurrent.Service.Listener, com.google.common.util.concurrent.Service.State
    • Method Detail

      • releaseCommand

        void releaseCommand​(PreparedCommand preparedCommand)
        release a command.
        Parameters:
        preparedCommand -
      • setCommandHistory

        void setCommandHistory​(CommandHistoryPublisher commandHistory)
        the command releaser has to add the command to the history when it is released.
        Parameters:
        commandHistory -