Package com.avoka.fc.core.sysevent
Class SysEventBuilder
java.lang.Object
com.avoka.fc.core.sysevent.SysEventBuilder
Provides support for building system event messages.
This class would be used by the SysEvtFilter and BaseJob to add messages to the SysEventQueue.
- Since:
- 18.5.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceProvides an System Event Builder. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidThis method will remove the ThreadLocal system event builder valueReturn the ThreadLocal system event builder instance.static booleanstatic voidsetThreadBuilder(SysEventBuilder.ISysEventBuilder sysEventBuilder) Set the thread builder.
-
Constructor Details
-
SysEventBuilder
public SysEventBuilder()
-
-
Method Details
-
getThreadBuilder
Return the ThreadLocal system event builder instance. Will create a register a new instance if not already available on the thread.- Returns:
- the thread local SysEventBuilder
-
hasThreadBuilder
public static boolean hasThreadBuilder()- Returns:
- true if has a ThreadBuilder
-
setThreadBuilder
Set the thread builder.- Parameters:
sysEventBuilder- the thread builder
-
clearThreadBuilder
public static void clearThreadBuilder()This method will remove the ThreadLocal system event builder value
-