class Ingenico::Direct::SDK::PooledConnection

{Ingenico::Direct::SDK::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. @see Ingenico::Direct::SDK::DefaultImpl::DefaultConnection

Public Instance Methods

close_expired_connections() click to toggle source

Closes all connections that have expired.

# File lib/ingenico/direct/sdk/pooled_connection.rb, line 17
def close_expired_connections
  raise NotImplementedError
end
close_idle_connections(idle_time) click to toggle source

Closes all connections that have not been used for idle_time seconds.

# File lib/ingenico/direct/sdk/pooled_connection.rb, line 12
def close_idle_connections(idle_time)
  raise NotImplementedError
end