Package org.apache.pekko.testkit
Interface WatchedByCoroner
- All Known Implementing Classes:
- ClientCancellationSpec,- ClientConnectionSettingsSpec,- ClientServerHttp2EnabledSpec,- ClientServerSpec,- ClientServerSpecBase,- ClientTransportWithCustomResolverSpec,- ConfigSpec,- ConnectionPoolSettingsSpec,- EntityDiscardingSpec,- FramingSpec,- GracefulTerminationSpec,- HighLevelOutgoingConnectionSpec,- HostConnectionPoolSpec,- Http2CommonSettingsSpec,- HttpConfigurationSpec,- HttpEntitySpec,- HttpExtensionApiSpec,- HttpHeaderParserCRLFSpec,- HttpHeaderParserLFSpec,- HttpHeaderParserSpec,- HttpServerBug21008Spec,- HttpServerSpec,- HttpServerWithExplicitSchedulerSpec,- HttpsProxyGraphStageSpec,- LowLevelOutgoingConnectionSpec,- MessageSpec,- MultipartSpec,- NewConnectionPoolSpec,- One2OneBidiFlowSpec,- PekkoBaseSpec,- PekkoFreeSpec,- PekkoSpec,- PekkoSpecWithMaterializer,- PrepareRequestsSpec,- PrepareResponseSpec,- RenderingSpec,- ResponseParserCRLFSpec,- ResponseParserLFSpec,- ResponseParserSpec,- ResponseParsingMergeSpec,- ServerSettingsSpec,- SlotStateSpec,- StreamUtilsSpec,- TlsEndpointVerificationSpec,- Utf8CodingSpecs,- WebSocketClientSpec,- WebSocketIntegrationSpec,- WebSocketServerSpec
public interface WatchedByCoroner
Mixin for tests that should be watched by the Coroner. The 
startCoroner
 and stopCoroner methods should be called before and after the test runs.
 The Coroner will display its report if the test takes longer than the
 (dilated) expectedTestDuration to run.
 If displayThreadCounts is set to true, then the Coroner will print thread counts during start and stop.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanscala.concurrent.duration.FiniteDurationscala.concurrent.duration.FiniteDurationvoidvoid
- 
Method Details- 
displayThreadCountsboolean displayThreadCounts()
- 
expectedTestDurationscala.concurrent.duration.FiniteDuration expectedTestDuration()
- 
startAndStopDurationscala.concurrent.duration.FiniteDuration startAndStopDuration()
- 
startCoronervoid startCoroner()
- 
stopCoronervoid stopCoroner()
 
-