Class CommonEvent

java.lang.Object
com.iohao.net.extension.domain.CommonEvent

public final class CommonEvent extends Object
Event subscription sends CommonEvent to RingBuffer
Author:
渔民小镇
date:
2021-12-26
  • Field Details

    • eventSource

      public boolean eventSource
      Whether it is a wrapped domain event
      true Object that implements the DomainEventSource interface
      false Object that does not implement the DomainEventSource interface
      
  • Constructor Details

    • CommonEvent

      public CommonEvent()
  • Method Details

    • getDomainEventSource

      public <T> T getDomainEventSource()
      Get the domain event source object
      Type Parameters:
      T - source
      Returns:
      Event source object
    • getValue

      public <T> T getValue()
      Object that does not implement the DomainEventSource interface
      Type Parameters:
      T - T
      Returns:
      value
    • setValue

      public void setValue(Object value)
      Object that does not implement the DomainEventSource interface
      Parameters:
      value - value
    • setDomainEventSource

      public void setDomainEventSource(DomainEventSource domainEventSource)
      Set the domain event source
      Parameters:
      domainEventSource - Domain event source