Class InMemoryCommandsQueueRepository

  • All Implemented Interfaces:
    com.snowflake.connectors.taskreactor.commands.queue.CommandsQueueRepository

    public class InMemoryCommandsQueueRepository
    extends Object
    implements com.snowflake.connectors.taskreactor.commands.queue.CommandsQueueRepository
    In memory implementation of CommandsQueueRepository.
    • Constructor Detail

      • InMemoryCommandsQueueRepository

        public InMemoryCommandsQueueRepository()
    • Method Detail

      • fetchAllSupportedOrderedBySeqNo

        public List<com.snowflake.connectors.taskreactor.commands.queue.Command> fetchAllSupportedOrderedBySeqNo()
        Specified by:
        fetchAllSupportedOrderedBySeqNo in interface com.snowflake.connectors.taskreactor.commands.queue.CommandsQueueRepository
      • add

        public void add​(com.snowflake.connectors.taskreactor.commands.queue.Command.CommandType type,
                        Variant payload)
        Specified by:
        add in interface com.snowflake.connectors.taskreactor.commands.queue.CommandsQueueRepository
      • deleteById

        public void deleteById​(String id)
        Specified by:
        deleteById in interface com.snowflake.connectors.taskreactor.commands.queue.CommandsQueueRepository
      • deleteUnsupportedCommands

        public void deleteUnsupportedCommands()
        Specified by:
        deleteUnsupportedCommands in interface com.snowflake.connectors.taskreactor.commands.queue.CommandsQueueRepository