Class DefaultCommandsQueueRepository

    • Constructor Detail

      • DefaultCommandsQueueRepository

        public DefaultCommandsQueueRepository​(Session session,
                                              Identifier instanceSchema)
        Creates a DefaultCommandsQueueRepository object with all fields initialized.
        Parameters:
        session - Snowpark session object
        instanceSchema - task reactor instance schema name
    • Method Detail

      • fetchAllSupportedOrderedBySeqNo

        public List<Command> fetchAllSupportedOrderedBySeqNo()
        Retrieves all commands of valid type from the commands queue sorted ascending by the command sequence number. This implementation assumes that there can be some commands in the queue with the invalid command type. These commands are filtered out from the queue.
        Specified by:
        fetchAllSupportedOrderedBySeqNo in interface CommandsQueueRepository
        Returns:
        a list of the fetched commands
      • deleteById

        public void deleteById​(String id)
        Deletes the command with the given id.
        Specified by:
        deleteById in interface CommandsQueueRepository
        Parameters:
        id - id of the command entity to be deleted