Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Host

Hierarchy

  • Host

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

options

options: RequestOptions

url

url: Url

Methods

fail

  • fail(): number
  • Marks a failure on the host and returns the length of time it should be removed from the pool

    Returns number

    removal time in milliseconds

success

  • success(): void
  • Should be called when a successful operation is run against the host. It resets the host's backoff strategy.

    Returns void

Generated using TypeDoc