# JournaledGrain&lt;TGrainState, TEventBase&gt;.OnConnectionIssue(ConnectionIssue)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.journaledgrain-2/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.journaledgrain-2/methods/)

[Source](https://github.com/dotnet/orleans/blob/b7a9e3e1c9c54b3cec3a467c5734bf7744541bcf/src/Orleans.EventSourcing/JournaledGrain.cs#L211)

```csharp
protected virtual void JournaledGrain<TGrainState, OnConnectionIssue(ConnectionIssue issue)
```

Called when the underlying persistence or replication protocol is running into some sort of connection trouble. 

Override this to monitor the health of the log-consistency protocol and/or to customize retry delays. Any exceptions thrown are caught and logged by the [ILogViewAdaptorFactory](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.ilogviewadaptorfactory/).

### Parameters

- `issue` (`ConnectionIssue`)

### Returns

The time to wait before retrying
