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.ApplicationEventEvent to be published after the local service instance registers itself with a discovery service.- Author:
- Spencer Gibb
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description InstanceRegisteredEvent(Object source, T config)Creates a newInstanceRegisteredEventinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetConfig()-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Constructor Detail
-
InstanceRegisteredEvent
public InstanceRegisteredEvent(Object source, T config)
Creates a newInstanceRegisteredEventinstance.- Parameters:
source- The component that published the event (nevernull).config- The configuration of the instance.
-
-
Method Detail
-
getConfig
public T getConfig()
-
-