Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Session

Holds properties of Consul sessions

Hierarchy

  • Session

Index

Constructors

constructor

  • Returns Session

  • Parameters

    Returns Session

Methods

getChecks

  • getChecks(): string[]
  • Set the list of associated health checks

    Returns string[]

getCreateIndex

  • getCreateIndex(): number
  • Set the create index of session

    Returns number

getId

  • getId(): string
  • Set the ID of node

    Returns string

getIndex

  • getIndex(): number
  • Set Consul index

    Returns number

getLockDelay

  • getLockDelay(): number
  • Set the Lock delay of session

    Returns number

getNode

  • getNode(): string
  • Set the ID of node

    Returns string

setChecks

  • setChecks(checks: string[]): Session
  • Set the list of associated health checks

    Parameters

    • checks: string[]

    Returns Session

setCreateIndex

  • setCreateIndex(createIndex: number): Session
  • Set the create index of session

    Parameters

    • createIndex: number

    Returns Session

setId

  • Set the ID of node

    Parameters

    • id: string

    Returns Session

setIndex

  • Set Consul index

    Parameters

    • index: number

    Returns Session

setLockDelay

  • setLockDelay(lockDelay: number): Session
  • Set the Lock delay of session

    Parameters

    • lockDelay: number

    Returns Session

setNode

  • Set the ID of node

    Parameters

    • node: string

    Returns Session

toJson

  • toJson(): {}
  • Returns {}

    • [key: string]: any

Generated using TypeDoc