Class ProtobufOutputMarshaller
java.lang.Object
org.drools.serialization.protobuf.ProtobufOutputMarshaller
An output marshaller that uses ProtoBuf as the marshalling framework
in order to provide backward compatibility with marshalled sessions
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InternalFactHandle[]orderFacts(List<InternalFactHandle> handlesList) static InternalFactHandle[]orderFacts(ObjectStore objectStore) static voidwriteActionQueue(MarshallerWriteContext context, ProtobufMessages.RuleData.Builder _session) static <M extends ModedAssertion<M>>
ProtobufMessages.ActivationwriteActivation(MarshallerWriteContext context, RuleAgendaItem agendaItem) static <M extends ModedAssertion<M>>
ProtobufMessages.ActivationwriteActivation(MarshallerWriteContext context, InternalMatch internalMatch, boolean isDormient) static voidstatic ProtobufMessages.TriggerwriteTrigger(org.drools.base.time.Trigger trigger, MarshallerWriteContext outCtx) static voidwriteTruthMaintenanceSystem(MarshallerWriteContext context, org.kie.api.runtime.rule.EntryPoint wmep, ProtobufMessages.EntryPoint.Builder _epb) static ProtobufMessages.TuplewriteTuple(MarshallerWriteContext context, InternalMatch internalMatch, boolean isDormient) static voidwriteWorkItem(MarshallerWriteContext context, WorkItem workItem)
-
Constructor Details
-
ProtobufOutputMarshaller
public ProtobufOutputMarshaller()
-
-
Method Details
-
writeSession
- Throws:
IOException
-
writeActionQueue
public static void writeActionQueue(MarshallerWriteContext context, ProtobufMessages.RuleData.Builder _session) throws IOException - Throws:
IOException
-
writeTruthMaintenanceSystem
public static void writeTruthMaintenanceSystem(MarshallerWriteContext context, org.kie.api.runtime.rule.EntryPoint wmep, ProtobufMessages.EntryPoint.Builder _epb) throws IOException - Throws:
IOException
-
orderFacts
-
orderFacts
-
writeActivation
public static <M extends ModedAssertion<M>> ProtobufMessages.Activation writeActivation(MarshallerWriteContext context, InternalMatch internalMatch, boolean isDormient) -
writeActivation
public static <M extends ModedAssertion<M>> ProtobufMessages.Activation writeActivation(MarshallerWriteContext context, RuleAgendaItem agendaItem) -
writeTuple
public static ProtobufMessages.Tuple writeTuple(MarshallerWriteContext context, InternalMatch internalMatch, boolean isDormient) -
writeTrigger
public static ProtobufMessages.Trigger writeTrigger(org.drools.base.time.Trigger trigger, MarshallerWriteContext outCtx) -
writeWorkItem
-