Questions on Thread Affinity Rule Function

Questions on Thread Affinity Rule Function

book

Article ID: KB0083295

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition 5.4.x

Description

1). What is the return type of the Thread Affinity Rule Function?
2). When is the Thread Affinity Rule Function called?


 

Issue/Introduction

Questions on Thread Affinity Rule Function

Environment

All Supported Platforms

Resolution

1). What is the return type of the Thread Affinity Rule Function.

According to the documentation, the only requirement to the Thread Affinity Rule Function is that the return value could not be NULL. You can define the return type based on your requirement, String, int, long, double should be fine.

2). When is the Thread Affinity Rule Function called?

The Thread Affinity Rule Function, if configured, is used to pick up the thread to which the message will be dispatched. It is called before a message being processed by a Preprocessor.