Defined in: [src/retry/backoff-strategy.ts:96](https://github.com/strands-agents/harness-sdk/blob/576da59fdc411b55036a7cf66d4e1659a67d4d0d/strands-ts/src/retry/backoff-strategy.ts#L96)

Linear backoff: delay grows as `baseMs * attempt`, capped at `maxMs`, then jittered.

## Implements

-   [`BackoffStrategy`](/pr-cms-3708/docs/api/typescript/BackoffStrategy/index.md)

## Constructors

### Constructor

```ts
new LinearBackoff(opts?): LinearBackoff;
```

Defined in: [src/retry/backoff-strategy.ts:101](https://github.com/strands-agents/harness-sdk/blob/576da59fdc411b55036a7cf66d4e1659a67d4d0d/strands-ts/src/retry/backoff-strategy.ts#L101)

#### Parameters

| Parameter | Type |
| --- | --- |
| `opts` | [`LinearBackoffOptions`](/pr-cms-3708/docs/api/typescript/LinearBackoffOptions/index.md) |

#### Returns

`LinearBackoff`

## Methods

### nextDelay()

```ts
nextDelay(ctx): number;
```

Defined in: [src/retry/backoff-strategy.ts:107](https://github.com/strands-agents/harness-sdk/blob/576da59fdc411b55036a7cf66d4e1659a67d4d0d/strands-ts/src/retry/backoff-strategy.ts#L107)

Returns the delay in milliseconds before the next attempt.

Must be a non-negative finite number. Implementations should treat `ctx.attempt < 1` as a programmer error.

#### Parameters

| Parameter | Type |
| --- | --- |
| `ctx` | [`BackoffContext`](/pr-cms-3708/docs/api/typescript/BackoffContext/index.md) |

#### Returns

`number`

#### Implementation of

[`BackoffStrategy`](/pr-cms-3708/docs/api/typescript/BackoffStrategy/index.md).[`nextDelay`](/pr-cms-3708/docs/api/typescript/BackoffStrategy/index.md#nextdelay)