ConnectorLib Java 25.2
ConnectorLib Java SDK Programming Guide

# Synchronous and Asynchronous Actions

Some actions are synchronous and others are asynchronous.

A connector does not respond to a synchronous action until it has completed the request. The result of the action is in the response to the request.

A connector responds to an asynchronous action immediately. The request is added to a queue of actions. The response to the request contains a token. You can use this token to determine whether the request has finished, and obtain the results of the action. To do this, use the `QueueInfo` action.

## Asynchronous Action Example

    http://localhost:1234/action=Fetch&FetchAction=Synchronize

## Asynchronous Action Response

    <autnresponse>
    <action>FETCH</action>
    <response>SUCCESS</response>
    <responsedata>
    <token>MTAuMi4xMDUuMzQ6MTIzNDpGRVRDSDoxNzUyNTc4MDc0</token>
    </responsedata>
    </autnresponse>

Copyright 2025 Open Text
Version 25.2 | Last updated April 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery ConnectorLib Java 25.2

Topic Title: Synchronous and Asynchronous Actions