Class: Worldline::Acquiring::SDK::Communication::PooledConnection
- Inherits:
-
Connection
- Object
- Connection
- Worldline::Acquiring::SDK::Communication::PooledConnection
- Defined in:
- lib/worldline/acquiring/sdk/communication/pooled_connection.rb
Overview
Connection that supports connection pooling. This is used to more efficiently communicate using HTTP. Connection pooling means that a number of connections are kept alive after use so they can possibly be reused. If the Connection does not do so automatically, the methods close_idle_connections and close_expired_connections can be used to drop connections that are idle for a specified amount of time or that have expired.
Direct Known Subclasses
Instance Method Summary collapse
-
#close_expired_connections ⇒ Object
Closes all connections that have expired.
-
#close_idle_connections(idle_time) ⇒ Object
Closes all connections that have not been used for idle_time seconds.
Methods inherited from Connection
Methods included from Logging::Obfuscation::ObfuscationCapable
#set_body_obfuscator, #set_header_obfuscator
Methods included from Logging::LoggingCapable
#disable_logging, #enable_logging
Instance Method Details
#close_expired_connections ⇒ Object
Closes all connections that have expired.
21 22 23 |
# File 'lib/worldline/acquiring/sdk/communication/pooled_connection.rb', line 21 def close_expired_connections raise NotImplementedError end |
#close_idle_connections(idle_time) ⇒ Object
Closes all connections that have not been used for idle_time seconds.
16 17 18 |
# File 'lib/worldline/acquiring/sdk/communication/pooled_connection.rb', line 16 def close_idle_connections(idle_time) raise NotImplementedError end |