|
Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.1.2) Part Number E27170-02 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConnectionAffinityCallback
The callback interface for the Oracle RAC affinity features. Oracle RAC affinity features allow related connection requests to be directed to the same Oracle RAC instance within a certain period of time, in order to achieve better overall performance. UCP supports two Oracle RAC affinity policies: transaction-based affinity and web-session-based affinity.
Transaction-based affinity allows applications to group connection requests to the same Oracle RAC instance based on their semantical correlation. Connection requests within the same distributed transaction are directed to the same Oracle RAC instance when possible. Web-session affinity directs connection requests originated by the same Web-session to the same Oracle RAC instance when possible. This interface allows the Universal Connection Pool to establish and retrieve connection affinity context inside its application in order to return appropriate connections that satisfy Oracle RAC affinity requirements. The interface also allows applications to inform the pool of their choice of the connection affinity policy.
Nested Class Summary | |
---|---|
static class |
ConnectionAffinityCallback.AffinityPolicy
|
Method Summary | |
---|---|
ConnectionAffinityCallback.AffinityPolicy |
getAffinityPolicy()
Obtains the current affinity policy from this callback. |
Object |
getConnectionAffinityContext()
Obtains the connection affinity context object from UCP application. |
void |
setAffinityPolicy(ConnectionAffinityCallback.AffinityPolicy policy)
Sets the affinity policy to use for this callback. |
boolean |
setConnectionAffinityContext(Object affinityContext)
Sets the connection affinity context object inside UCP application. |
Method Detail |
---|
boolean setConnectionAffinityContext(Object affinityContext)
affinityContext
- Connection Affinity Context object.
true
if Affinity Context is successfully set;
false
otherwise.Object getConnectionAffinityContext()
void setAffinityPolicy(ConnectionAffinityCallback.AffinityPolicy policy)
policy
- The affinity policy to use.ConnectionAffinityCallback.AffinityPolicy getAffinityPolicy()
|
Copyright 1996, 2013, 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.1.2) Part Number E27170-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |