Class: Puppet::HTTP::PoolEntry Private
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
An entry in the peristent HTTP pool that references the connection and an expiration time for the connection.
Instance Attribute Summary collapse
- #connection ⇒ Object readonly private
- #verifier ⇒ Object readonly private
Instance Method Summary collapse
- #expired?(now) ⇒ Boolean private
-
#initialize(connection, verifier, expiration_time) ⇒ PoolEntry
constructor
private
A new instance of PoolEntry.
Constructor Details
#initialize(connection, verifier, expiration_time) ⇒ PoolEntry
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of PoolEntry.
10 11 12 13 14 |
# File 'lib/puppet/http/pool_entry.rb', line 10 def initialize(connection, verifier, expiration_time) @connection = connection @verifier = verifier @expiration_time = expiration_time end |
Instance Attribute Details
#connection ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
8 9 10 |
# File 'lib/puppet/http/pool_entry.rb', line 8 def connection @connection end |
#verifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
8 9 10 |
# File 'lib/puppet/http/pool_entry.rb', line 8 def verifier @verifier end |
Instance Method Details
#expired?(now) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
16 17 18 |
# File 'lib/puppet/http/pool_entry.rb', line 16 def expired?(now) @expiration_time <= now end |