Skip navigation links

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09


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
abstract  int getPartitionId()
          Obtains the logical partition identifier for data-based affinity.
abstract  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.

Skip navigation links

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
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09