Class InstanceRegisteredEvent<T>

java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.cloud.client.discovery.event.InstanceRegisteredEvent<T>
Type Parameters:
T - - type of configuration
All Implemented Interfaces:
Serializable

public class InstanceRegisteredEvent<T> extends org.springframework.context.ApplicationEvent
Event to be published after the local service instance registers itself with a discovery service.
Author:
Spencer Gibb
See Also:
  • Constructor Details

    • InstanceRegisteredEvent

      public InstanceRegisteredEvent(Object source, T config)
      Creates a new InstanceRegisteredEvent instance.
      Parameters:
      source - The component that published the event (never null).
      config - The configuration of the instance.
  • Method Details

    • getConfig

      public T getConfig()