Class AvailabilityChangeEvent<S extends AvailabilityState>

Type Parameters:
S - the availability state type
All Implemented Interfaces:
Serializable, ResolvableTypeProvider

public class AvailabilityChangeEvent<S extends AvailabilityState> extends PayloadApplicationEvent<S>
ApplicationEvent sent when the AvailabilityState of the application changes.

Any application component can send such events to update the state of the application.

Since:
2.3.0
Author:
Brian Clozel, Phillip Webb
See Also:
  • Constructor Details

    • AvailabilityChangeEvent

      public AvailabilityChangeEvent(Object source, S state)
      Create a new AvailabilityChangeEvent instance.
      Parameters:
      source - the source of the event
      state - the availability state (never null)
  • Method Details