# EventIterator

## Extends

- `EventIterator`

### getBook()

```ts
getBook(): Book;
```

Gets the Book that originated the iterator

#### Returns

`Book`

The Book object

#### Inherited from

```ts
Bkper.EventIterator.getBook
```

***

### getContinuationToken()

```ts
getContinuationToken(): string;
```

Gets a token that can be used to resume this iteration at a later time.

This method is useful if processing an iterator in one execution would exceed the maximum execution time.

Continuation tokens are generally valid short period of time.

#### Returns

`string`

The continuation token

#### Inherited from

```ts
Bkper.EventIterator.getContinuationToken
```

***

### hasNext()

```ts
hasNext(): boolean;
```

Determines whether calling next() will return a transaction.

#### Returns

`boolean`

#### Inherited from

```ts
Bkper.EventIterator.hasNext
```

***

### next()

```ts
next(): Event;
```

Gets the next event in the collection of events.

#### Returns

`Event`

The next Event object

#### Inherited from

```ts
Bkper.EventIterator.next
```

***

### setContinuationToken()

```ts
setContinuationToken(continuationToken): void;
```

Sets a continuation token from a previous paused iteration.

#### Parameters

| Parameter | Type |
| :------ | :------ |
| `continuationToken` | `string` |

#### Returns

`void`

#### Inherited from

```ts
Bkper.EventIterator.setContinuationToken
```
