Interface Fault

All Known Implementing Classes:
Fault.Delay, Fault.Fail, Fault.LoseResponse

public sealed interface Fault permits Fault.Delay, Fault.Fail, Fault.LoseResponse
A fault a FaultInjector applies to one store operation (06-stores.md ยง3).
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final record 
    Waits, then performs the operation: a slow store, or a timeout when longer than the caller waits.
    static final record 
    Throws without performing the operation: the request never reached the store.
    static final record 
    Performs the operation, then throws instead of returning: the response was lost, and a retry replays a request the store already applied.