Class LastSourceEventCache

java.lang.Object
com.inductiveautomation.eventstream.gateway.util.LastSourceEventCache

public class LastSourceEventCache extends Object
Retains last event Source emitted for every Event Stream. Used for testing with last event.
  • Constructor Details

    • LastSourceEventCache

      public LastSourceEventCache()
  • Method Details

    • setLastValue

      public void setLastValue(EventStreamKey key, Object value)
      Set the last value for the given key.
      Parameters:
      key - EventStream key where the value came from.
      value - Value as it'd be emitted by Source.
    • getLastValue

      @Nullable public Object getLastValue(EventStreamKey key)