# AzureTableStreamQueueCheckpointer Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.streams.azuretablestreamqueuecheckpointer/)

## Create(AzureTableStreamCheckpointerOptions, string, string, string, ILoggerFactory) {#create-orleans-configuration-azuretablestreamcheckpointeroptions-string-string-s-073c33bf}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.streams.azuretablestreamqueuecheckpointer/methods/create-orleans-configuration-azuretablestreamcheckpointeroptions-string-string-s-073c33bf/)

[Source](https://github.com/dotnet/orleans/blob/b7a9e3e1c9c54b3cec3a467c5734bf7744541bcf/src/Azure/Orleans.Streaming.EventHubs/Providers/Streams/EventHub/AzureTableStreamQueueCheckpointer.cs#L87)

```csharp
public static Task<IStreamQueueCheckpointer<string>> Create(AzureTableStreamCheckpointerOptions options, string streamProviderName, string partition, string serviceId, ILoggerFactory loggerFactory)
```

Creates and initializes an Azure Table stream queue checkpointer.

### Parameters

- `options` (`AzureTableStreamCheckpointerOptions`)
- `streamProviderName` (`string`)
- `partition` (`string`)
- `serviceId` (`string`)
- `loggerFactory` (`ILoggerFactory`)

## FlushAsync(CancellationToken) {#flushasync-system-threading-cancellationtoken-a920d24f}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.streams.azuretablestreamqueuecheckpointer/methods/flushasync-system-threading-cancellationtoken-a920d24f/)

[Source](https://github.com/dotnet/orleans/blob/b7a9e3e1c9c54b3cec3a467c5734bf7744541bcf/src/Azure/Orleans.Streaming.EventHubs/Providers/Streams/EventHub/AzureTableStreamQueueCheckpointer.cs#L161-L204)

```csharp
public Task FlushAsync(CancellationToken cancellationToken)
```

Flushes any pending checkpoint to persistent storage, ensuring the latest offset is durably saved. Called during shutdown or rebalancing to prevent message replay on restart.

### Parameters

- `cancellationToken` (`CancellationToken`): The cancellation token.

### Returns

A `System.Threading.Tasks.Task` representing the flush operation.

## Load {#load-6360a21a}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.streams.azuretablestreamqueuecheckpointer/methods/load-6360a21a/)

[Source](https://github.com/dotnet/orleans/blob/b7a9e3e1c9c54b3cec3a467c5734bf7744541bcf/src/Azure/Orleans.Streaming.EventHubs/Providers/Streams/EventHub/AzureTableStreamQueueCheckpointer.cs#L114-L128)

```csharp
public Task<string> Load()
```

Loads the checkpoint.

### Returns

The checkpoint.

## Update(string, DateTime) {#update-string-system-datetime-7455f52a}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.streams.azuretablestreamqueuecheckpointer/methods/update-string-system-datetime-7455f52a/)

[Source](https://github.com/dotnet/orleans/blob/b7a9e3e1c9c54b3cec3a467c5734bf7744541bcf/src/Azure/Orleans.Streaming.EventHubs/Providers/Streams/EventHub/AzureTableStreamQueueCheckpointer.cs#L133-L156)

```csharp
public void Update(string offset, DateTime utcNow)
```

Updates the checkpoint.

### Parameters

- `offset` (`string`): The offset.
- `utcNow` (`DateTime`): The current UTC time.
