Class TestResourcesService

java.lang.Object
io.micronaut.testresources.server.TestResourcesService

@Singleton public class TestResourcesService extends Object
Main entry point for the server.
  • Constructor Details

    • TestResourcesService

      public TestResourcesService()
  • Method Details

    • main

      public static void main(String[] args)
    • checkTimeout

      @Scheduled(fixedRate="1m") public void checkTimeout(io.micronaut.runtime.server.EmbeddedServer server, ExpiryManager manager)
      Periodically checks if the server is expired and if so, shuts it down.
      Parameters:
      server - the server
      manager - the expiry manager