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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description InstanceRegisteredEvent(Object source, T config)
Creates a newInstanceRegisteredEvent
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getConfig()
-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Constructor Detail
-
InstanceRegisteredEvent
public InstanceRegisteredEvent(Object source, T config)
Creates a newInstanceRegisteredEvent
instance.- Parameters:
source
- The component that published the event (nevernull
).config
- The configuration of the instance.
-
-
Method Detail
-
getConfig
public T getConfig()
-
-