Skip to content

Accessing underlying TimedOutOperationStatus #57

@lloydmeta

Description

@lloydmeta

Currently there are 2 ways to get a TimedOutStatus from Shade:

  1. Timeout from the scheduler:

    Success(FailedResult(key, TimedOutStatus))

  2. Timeout from the Spymemcached layer translated into a TimedOutStatus

    case _: TimedOutOperationStatus =>
    TimedOutStatus

For the purposes of debugging, it would be nice to be able to distinguish between the two.

How

I think one way to do this is by turning the existing case object TimedOutStatus into a final case class TimedOutStatus(underlying: Option[TimedOutOperationStatus]).

The other way to do this might be to introduce a whole knew case object for either one of the aforementioned cases.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions