ResponseCorrelation

This interface provides a generic way to persist information needed to synchronize a request with a response when nonblocking synchronous processing has been invoked.

For example, a JMS receiver stores the JMS correlation ID, so the call looks like:

ResponseCorrelation respCorrel = new ResponseCorrelation()
respCorrel.set (CORREL_ID_STRING, correlID);

Multiple types of information might need to be stored, depending on the transport type.

The interface provides the following methods:

Method

set

Method description

Sets serializable key and data

Syntax

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

Parameters

key
The key for the correlation-enabling data
value
The value to be set

Method

get

Method description

Gets serializable data of the serializable key

Syntax

public Object get(Serializable key)

Parameters

key
The serializable key for retrieving serializable data

Copyright IBM Corp. 2003, 2005