{{theTime}}

Search This Blog

Total Pageviews

Java Shutdown Hook

Runtime.getRuntime().addShutdownHook(new Thread(() -> {
            System.out.println("Shutdown started");
             //  Close all the resource locks
            System.out.println("Shutdown successful");
        }));

No comments:

ImmutableList Example

private ImmutableList<String> getServerProps(){       ImmutableList.Builder<String> serverProps = ImmutableList.builder();      ...