public interface ConnectionRetrievalInfo
ConnectionFactoryAdapter| Modifier and Type | Method and Description |
|---|---|
void |
addLabel(String key,
String value)
Adds a connection label to this connection retrieval info object.
|
boolean |
equals(Object other)
Checks whether this instance is equal to another.
|
ConnectionRetrievalInfo |
getCopyWithNoLabels()
Clones this connection retrieval object but removes all the
connection labels associated.
|
Properties |
getLabels()
Retrieves all the connection labels stored on this connection
retrieval info object.
|
int |
hashCode()
Returns the
hashCode of the
ConnectionRequestInfo. |
void |
removeLabel(String key)
Removes the connection label with the given key from this connection
retrieval info object.
|
boolean equals(Object other)
ConnectionRetrievalInfo is defined
specific to the type of object being pooled. The conditions for
equality are specific to the type of object being pooled.int hashCode()
hashCode of the
ConnectionRequestInfo.void addLabel(String key, String value) throws UniversalConnectionPoolException
key - The key of the connection label to be added. Cannot
be null or an empty string.value - The value of the connection label to be added. Can be
null or an empty string.UniversalConnectionPoolException - If the key is null
or an empty string.void removeLabel(String key) throws UniversalConnectionPoolException
key - The key of the connection label to be removed. Cannot be
null or an empty string.UniversalConnectionPoolException - If the key is null
or an empty string.ConnectionRetrievalInfo getCopyWithNoLabels()
ConnectionRetrievalInfo object with all
connection labels removed.Properties getLabels()
java.util.Properties object storing all the stored
labels as key/value pairs. Returns null if there
are no stored labels on this connection retrieval info object.
Copyright © 2008, 2016, Oracle. All rights reserved.