org.springframework.boot

Class ExitCodeEvent

  • All Implemented Interfaces:
    Serializable


    public class ExitCodeEvent
    extends org.springframework.context.ApplicationEvent
    Event fired when an application exit code has been determined from an ExitCodeGenerator.
    Since:
    1.3.2
    Author:
    Phillip Webb
    See Also:
    Serialized Form
    • Constructor Detail

      • ExitCodeEvent

        public ExitCodeEvent(Object source,
                             int exitCode)
        Create a new ExitCodeEvent instance.
        Parameters:
        source - the source of the event
        exitCode - the exit code
    • Method Detail

      • getExitCode

        public int getExitCode()
        Return the exit code that will be used to exit the JVM.
        Returns:
        the exit code

Copyright © 2018 Pivotal Software, Inc.. All rights reserved.