Sha256: 73fa4f4afd0824fef096c47933480114970807ff1eb017126079cb9f4e4474a3

Contents?: true

Size: 443 Bytes

Versions: 20

Compression:

Stored size: 443 Bytes

Contents

# frozen_string_literal: true
# An entry in the peristent HTTP pool that references the connection and
# an expiration time for the connection.
#
# @api private
class Puppet::HTTP::PoolEntry
  attr_reader :connection, :verifier

  def initialize(connection, verifier, expiration_time)
    @connection = connection
    @verifier = verifier
    @expiration_time = expiration_time
  end

  def expired?(now)
    @expiration_time <= now
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
puppet-8.3.0 lib/puppet/http/pool_entry.rb
puppet-8.3.0-x86-mingw32 lib/puppet/http/pool_entry.rb
puppet-8.3.0-x64-mingw32 lib/puppet/http/pool_entry.rb
puppet-8.3.0-universal-darwin lib/puppet/http/pool_entry.rb
puppet-8.3.1 lib/puppet/http/pool_entry.rb
puppet-8.3.1-x86-mingw32 lib/puppet/http/pool_entry.rb
puppet-8.3.1-x64-mingw32 lib/puppet/http/pool_entry.rb
puppet-8.3.1-universal-darwin lib/puppet/http/pool_entry.rb
puppet-8.2.0 lib/puppet/http/pool_entry.rb
puppet-8.2.0-x86-mingw32 lib/puppet/http/pool_entry.rb
puppet-8.2.0-x64-mingw32 lib/puppet/http/pool_entry.rb
puppet-8.2.0-universal-darwin lib/puppet/http/pool_entry.rb
puppet-8.1.0 lib/puppet/http/pool_entry.rb
puppet-8.1.0-x86-mingw32 lib/puppet/http/pool_entry.rb
puppet-8.1.0-x64-mingw32 lib/puppet/http/pool_entry.rb
puppet-8.1.0-universal-darwin lib/puppet/http/pool_entry.rb
puppet-8.0.1 lib/puppet/http/pool_entry.rb
puppet-8.0.1-x86-mingw32 lib/puppet/http/pool_entry.rb
puppet-8.0.1-x64-mingw32 lib/puppet/http/pool_entry.rb
puppet-8.0.1-universal-darwin lib/puppet/http/pool_entry.rb