# IQueueAdapterReceiverMonitor Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.providers.streams.common.iqueueadapterreceivermonitor/)

## TrackInitialization(bool, TimeSpan, Exception) {#trackinitialization-bool-system-timespan-system-exception-c8c5f6c3}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.providers.streams.common.iqueueadapterreceivermonitor/methods/trackinitialization-bool-system-timespan-system-exception-c8c5f6c3/)

```csharp
public abstract void TrackInitialization(bool success, TimeSpan callTime, Exception exception)
```

Track attempts to initialize the receiver.

### Parameters

- `success` (`bool`): True if read succeeded, false if read failed.
- `callTime` (`TimeSpan`): Init operation time.
- `exception` (`Exception`): Exception caught if initialize fail.

## TrackMessagesReceived(long, DateTime?, DateTime?) {#trackmessagesreceived-long-system-datetime-nullable-system-datetime-nullable-a566d1e3}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.providers.streams.common.iqueueadapterreceivermonitor/methods/trackmessagesreceived-long-system-datetime-nullable-system-datetime-nullable-a566d1e3/)

```csharp
public abstract void TrackMessagesReceived(long count, DateTime? oldestMessageEnqueueTimeUtc, DateTime? newestMessageEnqueueTimeUtc)
```

Tracks messages read and time taken per successful read. Tracked per successful partition read operation.

### Parameters

- `count` (`long`): Messages read.
- `oldestMessageEnqueueTimeUtc` (`DateTime?`): The oldest message enqueue time (UTC).
- `newestMessageEnqueueTimeUtc` (`DateTime?`): The newest message enqueue time (UTC).

## TrackRead(bool, TimeSpan, Exception) {#trackread-bool-system-timespan-system-exception-2ed079c3}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.providers.streams.common.iqueueadapterreceivermonitor/methods/trackread-bool-system-timespan-system-exception-2ed079c3/)

```csharp
public abstract void TrackRead(bool success, TimeSpan callTime, Exception exception)
```

Track attempts to read from the partition. Tracked per partition read operation.

### Parameters

- `success` (`bool`): True if read succeeded, false if read failed.
- `callTime` (`TimeSpan`): Time spent in read operation.
- `exception` (`Exception`): The exception caught if read failed.

## TrackShutdown(bool, TimeSpan, Exception) {#trackshutdown-bool-system-timespan-system-exception-97af78b1}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.providers.streams.common.iqueueadapterreceivermonitor/methods/trackshutdown-bool-system-timespan-system-exception-97af78b1/)

```csharp
public abstract void TrackShutdown(bool success, TimeSpan callTime, Exception exception)
```

Track attempts to shutdown the receiver.

### Parameters

- `success` (`bool`): True if read succeeded, false if read failed.
- `callTime` (`TimeSpan`): Shutdown operation time.
- `exception` (`Exception`): Exception caught if shutdown fail.
