ResponseCorrelation

This interface provides a generic way to persist information needed to sync up a request with a response when non-blocking synchronous processing has been invoked. It provides the following methods:

Method

set

Method description

Sets the sync-enabling data

Syntax

public Object set(Serializable key, Serializable value)
              throws NullPointerException

Parameters

key
The key for the sync-enabling data. For example, a JMS receiver would store the JMS correlation ID, so the call would look like:
ResponseCorrelation respCorrel = new ResponseCorrelation()
respCorrel.set (CORREL_ID_STRING, correlID);

There might be multiple types of information that need to be stored, depending on the transport type.

value
The value to be set

Method

get

Method description

Retrieves the stored sync-enabling data

Syntax

public Object get(Serializable key)

Parameters

key
The key in which the sync-enabling data is stored. There might be multiple types of information that need to be retrieved, depending on the transport type.

Copyright IBM Corp. 2003, 2004