Package com.helix.core.stream.disruptor
Class RuleEventHolder
java.lang.Object
com.helix.core.stream.disruptor.RuleEventHolder
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classPre-allocated mutable RuleEvent that avoids heap allocation in steady-state streaming. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ExecutionContextprotected RuleEventprotected Stringprotected CompletableFuture<StreamResult> protected StreamListenerlonglonglonglonglonglonglonglonglonglonglonglonglonglongprotected Stringprotected longprotected longprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears references after processing to eliminate GC retention in the ring buffer.getEvent()longlonggetTopic()voidset(String eventId, String topic, String ruleName, ExecutionContext context, RuleEvent event, CompletableFuture<StreamResult> future, StreamListener listener, long timestamp, long sequence) voidsetEvent(RuleEvent ruleEvent, CompletableFuture<StreamResult> future, StreamListener listener, long sequence)
-
Field Details
-
p8
public long p8 -
p9
public long p9 -
p10
public long p10 -
p11
public long p11 -
p12
public long p12 -
p13
public long p13 -
p14
public long p14 -
eventId
-
topic
-
ruleName
-
context
-
event
-
future
-
listener
-
timestamp
protected long timestamp -
sequence
protected long sequence -
p1
public long p1 -
p2
public long p2 -
p3
public long p3 -
p4
public long p4 -
p5
public long p5 -
p6
public long p6 -
p7
public long p7
-
-
Constructor Details
-
RuleEventHolder
public RuleEventHolder()
-
-
Method Details
-
set
public void set(String eventId, String topic, String ruleName, ExecutionContext context, RuleEvent event, CompletableFuture<StreamResult> future, StreamListener listener, long timestamp, long sequence) -
setEvent
public void setEvent(RuleEvent ruleEvent, CompletableFuture<StreamResult> future, StreamListener listener, long sequence) -
getEventId
-
getTopic
-
getRuleName
-
getContext
-
getEvent
-
getFuture
-
getListener
-
getTimestamp
public long getTimestamp() -
getSequence
public long getSequence() -
clear
public void clear()Clears references after processing to eliminate GC retention in the ring buffer.
-