> ## Documentation Index
> Fetch the complete documentation index at: https://stars-components.js.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Abstract Class: InfluxListener

Defined in: [packages/shared-influx-pieces/src/lib/structures/InfluxListener.ts:6](https://github.com/wolfstar-project/stars-components/blob/5aefd164bc5fc41e5a35d3abf908c288163dd354/packages/shared-influx-pieces/src/lib/structures/InfluxListener.ts#L6)

## Extends

* `Listener`

## Constructors

### Constructor

> **new InfluxListener**(`context`, `options`): `InfluxListener`

Defined in: [packages/shared-influx-pieces/src/lib/structures/InfluxListener.ts:9](https://github.com/wolfstar-project/stars-components/blob/5aefd164bc5fc41e5a35d3abf908c288163dd354/packages/shared-influx-pieces/src/lib/structures/InfluxListener.ts#L9)

#### Parameters

##### context

`LoaderContext`

##### options

`Options`

#### Returns

`InfluxListener`

#### Overrides

`Listener.constructor`

## Properties

### \_listener

> `protected` **\_listener**: (...`args`) => `unknown`

Defined in: packages/http-framework/dist/esm/Client-Mni9tJr6.d.ts:1997

#### Parameters

##### args

...readonly `any`\[]

#### Returns

`unknown`

#### Inherited from

`Listener._listener`

***

### emitter

> **emitter**: `Emitter`

Defined in: packages/http-framework/dist/esm/Client-Mni9tJr6.d.ts:1995

#### Inherited from

`Listener.emitter`

***

### enabled

> **enabled**: `boolean`

Defined in: node\_modules/.pnpm/@sapphire+pieces\@4.4.1/node\_modules/@sapphire/pieces/dist/esm/index.d.mts:234

Whether or not the piece is enabled.

#### Inherited from

`Listener.enabled`

***

### event

> **event**: `string`

Defined in: packages/http-framework/dist/esm/Client-Mni9tJr6.d.ts:1996

#### Inherited from

`Listener.event`

***

### location

> `readonly` **location**: `PieceLocation`

Defined in: node\_modules/.pnpm/@sapphire+pieces\@4.4.1/node\_modules/@sapphire/pieces/dist/esm/index.d.mts:226

The location metadata for the piece's file.

#### Inherited from

`Listener.location`

***

### name

> `readonly` **name**: `string`

Defined in: node\_modules/.pnpm/@sapphire+pieces\@4.4.1/node\_modules/@sapphire/pieces/dist/esm/index.d.mts:230

The name of the piece.

#### Inherited from

`Listener.name`

***

### options

> `readonly` **options**: `Options`

Defined in: node\_modules/.pnpm/@sapphire+pieces\@4.4.1/node\_modules/@sapphire/pieces/dist/esm/index.d.mts:238

The raw options passed to this Piece

#### Inherited from

`Listener.options`

***

### store

> `readonly` **store**: `ListenerStore`

Defined in: node\_modules/.pnpm/@sapphire+pieces\@4.4.1/node\_modules/@sapphire/pieces/dist/esm/index.d.mts:222

The store that contains the piece.

#### Inherited from

`Listener.store`

***

### tags

> **tags**: \[`Tags`, `string`]\[] = `[]`

Defined in: [packages/shared-influx-pieces/src/lib/structures/InfluxListener.ts:7](https://github.com/wolfstar-project/stars-components/blob/5aefd164bc5fc41e5a35d3abf908c288163dd354/packages/shared-influx-pieces/src/lib/structures/InfluxListener.ts#L7)

## Accessors

### container

#### Get Signature

> **get** **container**(): `Container`

Defined in: node\_modules/.pnpm/@sapphire+pieces\@4.4.1/node\_modules/@sapphire/pieces/dist/esm/index.d.mts:244

A reference to the Container object for ease of use.

##### See

container

##### Returns

`Container`

#### Inherited from

`Listener.container`

## Methods

### flush()

> **flush**(): `Promise`\<`void`>

Defined in: [packages/shared-influx-pieces/src/lib/structures/InfluxListener.ts:27](https://github.com/wolfstar-project/stars-components/blob/5aefd164bc5fc41e5a35d3abf908c288163dd354/packages/shared-influx-pieces/src/lib/structures/InfluxListener.ts#L27)

#### Returns

`Promise`\<`void`>

***

### initTags()

> `protected` **initTags**(): `void`

Defined in: [packages/shared-influx-pieces/src/lib/structures/InfluxListener.ts:38](https://github.com/wolfstar-project/stars-components/blob/5aefd164bc5fc41e5a35d3abf908c288163dd354/packages/shared-influx-pieces/src/lib/structures/InfluxListener.ts#L38)

#### Returns

`void`

***

### injectTags()

> `protected` **injectTags**(`point`): [`Point`](/documentation/api/influx-utilities/classes/Point)

Defined in: [packages/shared-influx-pieces/src/lib/structures/InfluxListener.ts:31](https://github.com/wolfstar-project/stars-components/blob/5aefd164bc5fc41e5a35d3abf908c288163dd354/packages/shared-influx-pieces/src/lib/structures/InfluxListener.ts#L31)

#### Parameters

##### point

[`Point`](/documentation/api/influx-utilities/classes/Point)

#### Returns

[`Point`](/documentation/api/influx-utilities/classes/Point)

***

### onLoad()

> **onLoad**(): `unknown`

Defined in: [packages/shared-influx-pieces/src/lib/structures/InfluxListener.ts:13](https://github.com/wolfstar-project/stars-components/blob/5aefd164bc5fc41e5a35d3abf908c288163dd354/packages/shared-influx-pieces/src/lib/structures/InfluxListener.ts#L13)

Per-piece listener that is called when the piece is loaded into the store.
Useful to set-up asynchronous initialization tasks.

#### Returns

`unknown`

#### Overrides

`Listener.onLoad`

***

### onUnload()

> **onUnload**(): `unknown`

Defined in: node\_modules/.pnpm/@sapphire+pieces\@4.4.1/node\_modules/@sapphire/pieces/dist/esm/index.d.mts:254

Per-piece listener that is called when the piece is unloaded from the store.
Useful to set-up clean-up tasks.

#### Returns

`unknown`

#### Inherited from

`Listener.onUnload`

***

### reload()

> **reload**(): `Promise`\<`void`>

Defined in: node\_modules/.pnpm/@sapphire+pieces\@4.4.1/node\_modules/@sapphire/pieces/dist/esm/index.d.mts:262

Reloads the piece by loading the same path in the store.

#### Returns

`Promise`\<`void`>

#### Inherited from

`Listener.reload`

***

### run()

> `abstract` **run**(...`args`): `unknown`

Defined in: packages/http-framework/dist/esm/Client-Mni9tJr6.d.ts:1999

#### Parameters

##### args

...readonly `any`\[]

#### Returns

`unknown`

#### Inherited from

`Listener.run`

***

### toJSON()

> **toJSON**(): `PieceJSON`

Defined in: node\_modules/.pnpm/@sapphire+pieces\@4.4.1/node\_modules/@sapphire/pieces/dist/esm/index.d.mts:266

Defines the `JSON.stringify` behavior of this piece.

#### Returns

`PieceJSON`

#### Inherited from

`Listener.toJSON`

***

### unload()

> **unload**(): `Promise`\<`void`>

Defined in: node\_modules/.pnpm/@sapphire+pieces\@4.4.1/node\_modules/@sapphire/pieces/dist/esm/index.d.mts:258

Unloads and disables the piece.

#### Returns

`Promise`\<`void`>

#### Inherited from

`Listener.unload`

***

### writePoint()

> **writePoint**(`point`): `void`

Defined in: [packages/shared-influx-pieces/src/lib/structures/InfluxListener.ts:18](https://github.com/wolfstar-project/stars-components/blob/5aefd164bc5fc41e5a35d3abf908c288163dd354/packages/shared-influx-pieces/src/lib/structures/InfluxListener.ts#L18)

#### Parameters

##### point

[`Point`](/documentation/api/influx-utilities/classes/Point)

#### Returns

`void`

***

### writePoints()

> **writePoints**(`points`): `void`

Defined in: [packages/shared-influx-pieces/src/lib/structures/InfluxListener.ts:22](https://github.com/wolfstar-project/stars-components/blob/5aefd164bc5fc41e5a35d3abf908c288163dd354/packages/shared-influx-pieces/src/lib/structures/InfluxListener.ts#L22)

#### Parameters

##### points

readonly [`Point`](/documentation/api/influx-utilities/classes/Point)\[]

#### Returns

`void`
