Class CommonEvent
java.lang.Object
com.iohao.net.extension.domain.CommonEvent
Event subscription sends
CommonEvent to RingBuffer- Author:
- 渔民小镇
- date:
- 2021-12-26
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TGet the domain event source object<T> TgetValue()Object that does not implement theDomainEventSourceinterfacevoidsetDomainEventSource(DomainEventSource domainEventSource) Set the domain event sourcevoidObject that does not implement theDomainEventSourceinterface
-
Field Details
-
eventSource
public boolean eventSourceWhether it is a wrapped domain eventtrue Object that implements the
DomainEventSourceinterface false Object that does not implement theDomainEventSourceinterface
-
-
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 theDomainEventSourceinterface- Type Parameters:
T- T- Returns:
- value
-
setValue
Object that does not implement theDomainEventSourceinterface- Parameters:
value- value
-
setDomainEventSource
Set the domain event source- Parameters:
domainEventSource- Domain event source
-