Interface BatchJobHandler<T>

    • Method Detail

      • writeConfiguration

        byte[] writeConfiguration​(T configuration)
        Converts the configuration of the batch to a byte array.
        Parameters:
        configuration - the configuration object
        Returns:
        the serialized configuration
      • readConfiguration

        T readConfiguration​(byte[] serializedConfiguration)
        Read the serialized configuration of the batch.
        Parameters:
        serializedConfiguration - the serialized configuration
        Returns:
        the deserialized configuration object
      • getJobDeclaration

        JobDeclaration<?,​MessageEntity> getJobDeclaration()
        Get the job declaration for batch jobs.
        Returns:
        the batch job declaration
      • createJobs

        boolean createJobs​(BatchEntity batch)
        Creates batch jobs for a batch.
        Parameters:
        batch - the batch to create jobs for
        Returns:
        true of no more jobs have to be created for this batch, false otherwise
      • deleteJobs

        void deleteJobs​(BatchEntity batch)
        Delete all jobs for a batch.
        Parameters:
        batch - the batch to delete jobs for