Class TestResourcesKeepAlive
java.lang.Object
io.micronaut.testresources.client.TestResourcesKeepAlive
An application component which sends periodic keep alive requests to the server.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
keepAlive
(io.micronaut.context.ApplicationContext applicationContext) Sends periodic keep alive requests to the server.
-
Constructor Details
-
TestResourcesKeepAlive
public TestResourcesKeepAlive()
-
-
Method Details
-
keepAlive
@Scheduled(fixedRate="1m") public void keepAlive(io.micronaut.context.ApplicationContext applicationContext) Sends periodic keep alive requests to the server.- Parameters:
applicationContext
- the application context
-