Interface IRequestTracker
A request tracker with triggerd events for Session and Node lvel requests.
Namespace: Cassandra
Assembly: Cassandra.dll
Syntax
public interface IRequestTracker
Methods
OnErrorAsync(SessionRequestInfo, Exception)
Triggered when the session level request finishes unsuccessfully.
Declaration
Task OnErrorAsync(SessionRequestInfo sessionRequestInfo, Exception ex)
Parameters
Type | Name | Description |
---|---|---|
SessionRequestInfo | sessionRequestInfo | Request contextual information. |
Exception | ex | Request exception. |
Returns
Type | Description |
---|---|
Task | Contextual task. |
OnNodeAborted(SessionRequestInfo, NodeRequestInfo)
Triggered when the node request is aborted (e.g. pending speculative execution that was canceled due to another execution completing).
Declaration
Task OnNodeAborted(SessionRequestInfo sessionRequestInfo, NodeRequestInfo nodeRequestInfo)
Parameters
Type | Name | Description |
---|---|---|
SessionRequestInfo | sessionRequestInfo | SessionRequestInfo object with contextual information. |
NodeRequestInfo | nodeRequestInfo | Struct with host contextual information. |
Returns
Type | Description |
---|---|
Task | Contextual task. |
OnNodeErrorAsync(SessionRequestInfo, NodeRequestInfo, Exception)
Triggered when the node request finishes unsuccessfully.
Declaration
Task OnNodeErrorAsync(SessionRequestInfo sessionRequestInfo, NodeRequestInfo nodeRequestInfo, Exception ex)
Parameters
Type | Name | Description |
---|---|---|
SessionRequestInfo | sessionRequestInfo | SessionRequestInfo object with contextual information. |
NodeRequestInfo | nodeRequestInfo | Struct with host contextual information. |
Exception | ex | Exception information. |
Returns
Type | Description |
---|---|
Task | Contextual task. |
OnNodeStartAsync(SessionRequestInfo, NodeRequestInfo)
Triggered when the node request starts.
Declaration
Task OnNodeStartAsync(SessionRequestInfo sessionRequestInfo, NodeRequestInfo nodeRequestInfo)
Parameters
Type | Name | Description |
---|---|---|
SessionRequestInfo | sessionRequestInfo | SessionRequestInfo object with contextual information. |
NodeRequestInfo | nodeRequestInfo | Struct with host contextual information. |
Returns
Type | Description |
---|---|
Task | Contextual task. |
OnNodeSuccessAsync(SessionRequestInfo, NodeRequestInfo)
Triggered when the node level request finishes successfully.
Declaration
Task OnNodeSuccessAsync(SessionRequestInfo sessionRequestInfo, NodeRequestInfo nodeRequestInfo)
Parameters
Type | Name | Description |
---|---|---|
SessionRequestInfo | sessionRequestInfo | Request contextual information. |
NodeRequestInfo | nodeRequestInfo | Struct with host contextual information. |
Returns
Type | Description |
---|---|
Task | Contextual task. |
OnStartAsync(SessionRequestInfo)
Triggered when the request starts.
Declaration
Task OnStartAsync(SessionRequestInfo sessionRequestInfo)
Parameters
Type | Name | Description |
---|---|---|
SessionRequestInfo | sessionRequestInfo |
Returns
Type | Description |
---|---|
Task | Contextual task. |
OnSuccessAsync(SessionRequestInfo)
Triggered when the session level request finishes successfully.
Declaration
Task OnSuccessAsync(SessionRequestInfo sessionRequestInfo)
Parameters
Type | Name | Description |
---|---|---|
SessionRequestInfo | sessionRequestInfo |
Returns
Type | Description |
---|---|
Task | Contextual task. |