Class EntryReplacedEvent<E>

java.lang.Object
io.github.resilience4j.core.registry.AbstractRegistryEvent
io.github.resilience4j.core.registry.EntryReplacedEvent<E>
All Implemented Interfaces:
RegistryEvent

public class EntryReplacedEvent<E> extends AbstractRegistryEvent
  • Field Details

    • oldEntry

      private final E oldEntry
    • newEntry

      private final E newEntry
  • Constructor Details

    • EntryReplacedEvent

      EntryReplacedEvent(E oldEntry, E newEntry)
  • Method Details

    • getEventType

      public RegistryEvent.Type getEventType()
      Description copied from interface: RegistryEvent
      Returns the type of the Registry event.
      Returns:
      the type of the Registry event
    • getOldEntry

      public E getOldEntry()
      Returns the old entry.
      Returns:
      the old entry
    • getNewEntry

      public E getNewEntry()
      Returns the new entry.
      Returns:
      the new entry