Class RefreshRoutesEvent

java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.cloud.gateway.event.RefreshRoutesEvent
All Implemented Interfaces:
Serializable

public class RefreshRoutesEvent extends org.springframework.context.ApplicationEvent
Author:
Spencer Gibb
See Also:
  • Constructor Details

    • RefreshRoutesEvent

      public RefreshRoutesEvent(Object source)
      Create a new ApplicationEvent.
      Parameters:
      source - the object on which the event initially occurred (never null)
    • RefreshRoutesEvent

      public RefreshRoutesEvent(Object source, Map<String,Object> metadata)
      Create a new ApplicationEvent that should refresh filtering by metadata.
      Parameters:
      source - the object on which the event initially occurred (never null)
      metadata - map of metadata the routes should match ({code null} is considered a global refresh)
  • Method Details

    • isScoped

      public boolean isScoped()
    • getMetadata

      public Map<String,Object> getMetadata()