org.keycloak.platform

## Interface PlatformProvider

-     public interface PlatformProvider

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `exit(Throwable cause)`
    `File` | `getTmpDirectory()`
    `void` | `onShutdown(Runnable runnable)`
    `void` | `onStartup(Runnable runnable)`

- - ### Method Detail

    - #### onStartup

          void onStartup(Runnable runnable)

    - #### onShutdown

          void onShutdown(Runnable runnable)

    - #### exit

          void exit(Throwable cause)

    - #### getTmpDirectory

          File getTmpDirectory()

      Returns:
        tmp directory specific to target platform. Implementation can make sure to create "tmp" directory in case it does not exists. The directory should be usually inside the corresponding server directory. In production, it should not be system directory like "/tmp" .

Copyright © 2021 JBoss by Red Hat. All rights reserved.