Package com.tietoenator.trip.jxp.session

# Interface TdbJobResultSink

public interface TdbJobResultSink
Create a class that implements this interface to receive notifications of the completion of LOAD and INDEX background jobs.

To be informed when background jobs complete on the server, create a class that implements this interface And provide and object of that new class to the appropriate TdbSession using the JobResultSink property. The TRIPsystem version must be 8.4-6 or later in order for completion messages to be reported to this sink.

When a background job result is available, the onCompletedJob method of the implementing class will be invoked during the deserialization process of the server's response.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `onCompletedJob(TdbJobResult result)`
  Called when a LOAD or INDEX batch job has completed.

- ## Method Details

  - ### onCompletedJob

    void onCompletedJob(TdbJobResult result)
    Called when a LOAD or INDEX batch job has completed. The job must have been submitted using the TdbDatabaseDesign method submitBatchJob. Jobs submitted though other means will not get any completion information this way, nor will jobs of any other type than LOAD or INDEX.
    Parameters:
      `result` - Information about a completed job
    See Also:
      - `TdbDatabaseDesign.submitBatchJob(com.tietoenator.trip.jxp.database.TdbBatchJobType, String)`