Class: Puppet::HTTP::PoolEntry Private

Inherits:
Object
  • Object
show all
Defined in:
lib/puppet/http/pool_entry.rb

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

Instance Method Summary collapse

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

#connectionObject (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

#verifierObject (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.

Returns:

  • (Boolean)


16
17
18
# File 'lib/puppet/http/pool_entry.rb', line 16

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