Skip to main content

Overview

This sample code below is provided as a reference to developers that want to use the Loqate Engine in a multithreaded environment. The LqtMultithreadTestDriver class is responsible for creating multiple threads. The LqtThreadRunner class provides an example of the Loqate Engine instance variables and method calls suggested on a per-thread basis. The processRecordSegment(…) method of the LqtThreadRunner assumes the user wants to process different segments of the input records provided. That method may be modified depending on the customer application.

Multithreading Java Source Code

The sample Java source code is summarized in the table below. The source code can be viewed by following the links shown in that table. The source code can also be downloaded following the link shown at the bottom of this page. Table 1: Sample Java Source Code for this Tutorial
Java PackageJava Class (source code)
lqtmultithreadsampleLqtMultithreadTestDriver.java
lqtmultithreadsampleLqtThreadRunner.java