Package com.avoka.fc.core.sysevent
Class SysEventBuilder
- java.lang.Object
-
- com.avoka.fc.core.sysevent.SysEventBuilder
-
public class SysEventBuilder extends Object
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 Classes Modifier and Type Class Description static interface
SysEventBuilder.ISysEventBuilder
Provides an System Event Builder.
-
Constructor Summary
Constructors Constructor Description SysEventBuilder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
clearThreadBuilder()
This method will remove the ThreadLocal system event builder valuestatic SysEventBuilder.ISysEventBuilder
getThreadBuilder()
Return the ThreadLocal system event builder instance.static boolean
hasThreadBuilder()
static void
setThreadBuilder(SysEventBuilder.ISysEventBuilder sysEventBuilder)
Set the thread builder.
-
-
-
Method Detail
-
getThreadBuilder
public static SysEventBuilder.ISysEventBuilder 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
public static void setThreadBuilder(SysEventBuilder.ISysEventBuilder sysEventBuilder)
Set the thread builder.- Parameters:
sysEventBuilder
- the thread builder
-
clearThreadBuilder
public static void clearThreadBuilder()
This method will remove the ThreadLocal system event builder value
-
-