|
1 | 1 | # ----------------------------------------------------------------------------- |
2 | | -# Copyright (c) 2021, 2023, Oracle and/or its affiliates. |
| 2 | +# Copyright (c) 2021, 2024, Oracle and/or its affiliates. |
3 | 3 | # |
4 | 4 | # This software is dual-licensed to you under the Universal Permissive License |
5 | 5 | # (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl and Apache License |
@@ -94,6 +94,7 @@ def __init__( |
94 | 94 | connection_id_prefix: str = None, |
95 | 95 | ssl_context: Any = None, |
96 | 96 | sdu: int = 8192, |
| 97 | + pool_boundary: str = None, |
97 | 98 | handle: int = 0, |
98 | 99 | ): |
99 | 100 | """ |
@@ -255,6 +256,11 @@ def __init__( |
255 | 256 | actually be used is negotiated down to the lower of this value and |
256 | 257 | the database network SDU configuration value (default: 8192) |
257 | 258 |
|
| 259 | + - pool_boundary: one of the values "statement" or "transaction" |
| 260 | + indicating when pooled DRCP connections can be returned to the pool. |
| 261 | + This requires the use of DRCP with Oracle Database 23.4 or higher |
| 262 | + (default: None) |
| 263 | +
|
258 | 264 | - handle: an integer representing a pointer to a valid service context |
259 | 265 | handle. This value is only used in thick mode. It should be used with |
260 | 266 | extreme caution (default: 0) |
@@ -299,7 +305,8 @@ def __repr__(self): |
299 | 305 | + f"debug_jdwp={self.debug_jdwp!r}, " |
300 | 306 | + f"connection_id_prefix={self.connection_id_prefix!r}, " |
301 | 307 | + f"ssl_context={self.ssl_context!r}, " |
302 | | - + f"sdu={self.sdu!r}" |
| 308 | + + f"sdu={self.sdu!r}, " |
| 309 | + + f"pool_boundary={self.pool_boundary!r}" |
303 | 310 | + ")" |
304 | 311 | ) |
305 | 312 |
|
@@ -461,6 +468,16 @@ def mode(self) -> int: |
461 | 468 | """ |
462 | 469 | return self._impl.mode |
463 | 470 |
|
| 471 | + @property |
| 472 | + @_description_attr |
| 473 | + def pool_boundary(self) -> Union[list, str]: |
| 474 | + """ |
| 475 | + One of the values "statement" or "transaction" indicating when pooled |
| 476 | + DRCP connections can be returned to the pool. This requires the use of |
| 477 | + DRCP with Oracle Database 23.4 or higher. |
| 478 | + """ |
| 479 | + return self._impl.pool_boundary |
| 480 | + |
464 | 481 | @property |
465 | 482 | @_address_attr |
466 | 483 | def port(self) -> Union[list, int]: |
@@ -719,6 +736,7 @@ def set( |
719 | 736 | connection_id_prefix: str = None, |
720 | 737 | ssl_context: Any = None, |
721 | 738 | sdu: int = None, |
| 739 | + pool_boundary: str = None, |
722 | 740 | handle: int = None, |
723 | 741 | ): |
724 | 742 | """ |
@@ -871,6 +889,10 @@ def set( |
871 | 889 | actually be used is negotiated down to the lower of this value and |
872 | 890 | the database network SDU configuration value |
873 | 891 |
|
| 892 | + - pool_boundary: one of the values "statement" or "transaction" |
| 893 | + indicating when pooled DRCP connections can be returned to the pool. |
| 894 | + This requires the use of DRCP with Oracle Database 23.4 or higher |
| 895 | +
|
874 | 896 | - handle: an integer representing a pointer to a valid service context |
875 | 897 | handle. This value is only used in thick mode. It should be used with |
876 | 898 | extreme caution |
|
0 commit comments