class Puppet::HTTP::PoolEntry
An entry in the peristent HTTP pool that references the connection and an expiration time for the connection.
@api private
Attributes
connection[R]
verifier[R]
Public Class Methods
new(connection, verifier, expiration_time)
click to toggle source
# File lib/puppet/http/pool_entry.rb 8 def initialize(connection, verifier, expiration_time) 9 @connection = connection 10 @verifier = verifier 11 @expiration_time = expiration_time 12 end
Public Instance Methods
expired?(now)
click to toggle source
# File lib/puppet/http/pool_entry.rb 14 def expired?(now) 15 @expiration_time <= now 16 end