Oracle Fusion Middleware
Oracle WebLogic Server API Reference
11g Release 1 (10.3.6)

Part Number E13941-07

oracle.ucp.jdbc.oracle
Interface DataBasedConnectionAffinityCallback

All Superinterfaces:
ConnectionAffinityCallback
All Known Subinterfaces:
DataAffinityCallback

public interface DataBasedConnectionAffinityCallback
extends ConnectionAffinityCallback

The callback interface for the Oracle RAC Data-based affinity feature.


Nested Class Summary
 
Nested classes/interfaces inherited from interface oracle.ucp.ConnectionAffinityCallback
ConnectionAffinityCallback.AffinityPolicy
 
Method Summary
 int getPartitionId()
          Obtains the logical partition identifier for data-based affinity.
 boolean setDataKey(Object keyObject)
          Sets the data key object used by the UCP application inside this callback implementation.
 
Methods inherited from interface oracle.ucp.ConnectionAffinityCallback
getAffinityPolicy, getConnectionAffinityContext, setAffinityPolicy, setConnectionAffinityContext
 

Method Detail

setDataKey

boolean setDataKey(Object keyObject)
Sets the data key object used by the UCP application inside this callback implementation.

Parameters:
keyObject - Data key object.
Returns:
true if data key object is successfully set; false otherwise.

getPartitionId

int getPartitionId()
Obtains the logical partition identifier for data-based affinity.

Returns:
The logical partition identifier specific to the data key set inside this callback above.

Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Oracle WebLogic Server API Reference
11g Release 1 (10.3.6)

Part Number E13941-07