Currently there are 2 ways to get a TimedOutStatus from Shade:
-
Timeout from the scheduler:
|
Success(FailedResult(key, TimedOutStatus)) |
-
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.
Currently there are 2 ways to get a
TimedOutStatusfrom Shade:Timeout from the scheduler:
shade/src/main/scala/shade/memcached/internals/SpyMemcachedIntegration.scala
Line 387 in 4fc5975
Timeout from the Spymemcached layer translated into a
TimedOutStatusshade/src/main/scala/shade/memcached/internals/SpyMemcachedIntegration.scala
Lines 427 to 428 in 4fc5975
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 TimedOutStatusinto afinal 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.