Interface PartitioningFacility
-
public interface PartitioningFacility
Rhino extension facility that allows a resource adaptor to obtain the partition key associated with a calling SBB’s transaction.
If an SBB requests that a resource adaptor create an activity, and the resource adaptor generates that activity with an activity handle implementing
PartitionedActivityHandle
whosePartitionedActivityHandle.getPartitionKey()
method returns the same value asgetTransactionPartitionKey()
, then state for that newly created activity will be aggregated where possible with other session-related state.- Since:
- Rhino 3.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONFIG_PROPERTY_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getTransactionPartitionKey()
Get the partition key associated with the current transaction.
-
-
-
Field Detail
-
CONFIG_PROPERTY_NAME
static final String CONFIG_PROPERTY_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTransactionPartitionKey
int getTransactionPartitionKey() throws TransactionRequiredLocalException, IllegalStateException
Get the partition key associated with the current transaction.
- Returns:
- the partition key.
- Throws:
TransactionRequiredLocalException
- if the calling thread is not currently associated with a transaction.IllegalStateException
- if the calling thread is not an event router thread that is associated with a partition key.- Since:
- Rhino 3.0.0
- See Also:
PartitionedActivityHandle
-
-