Class ProtobufMarshaller
java.lang.Object
org.drools.serialization.protobuf.ProtobufMarshaller
- All Implemented Interfaces:
InternalMarshaller,org.kie.api.marshalling.Marshaller
A Marshaller implementation that uses ProtoBuf as the marshalling
framework in order to support backward compatibility with
marshalled sessions
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected KieSessionInitializerprotected org.kie.api.KieBaseprotected org.kie.api.marshalling.MarshallingConfigurationprotected RuleBaseConfigurationprotected org.kie.api.marshalling.ObjectMarshallingStrategyStorestatic final Map<Integer,TimersInputMarshaller> -
Constructor Summary
ConstructorsConstructorDescriptionProtobufMarshaller(org.kie.api.KieBase kbase, org.kie.api.marshalling.MarshallingConfiguration marshallingConfig) -
Method Summary
Modifier and TypeMethodDescriptionorg.kie.api.marshalling.MarshallingConfigurationvoidmarshall(OutputStream stream, org.kie.api.runtime.KieSession ksession) voidmarshall(OutputStream stream, org.kie.api.runtime.KieSession ksession, long clockTime) voidsetInitializer(KieSessionInitializer initializer) org.kie.internal.runtime.StatefulKnowledgeSessionunmarshall(InputStream stream) voidunmarshall(InputStream stream, org.kie.api.runtime.KieSession ksession) org.kie.internal.runtime.StatefulKnowledgeSessionunmarshall(InputStream stream, org.kie.api.runtime.KieSessionConfiguration config, org.kie.api.runtime.Environment environment) unmarshallWithMessage(InputStream stream, org.kie.api.runtime.KieSessionConfiguration config, org.kie.api.runtime.Environment environment)
-
Field Details
-
initializer
-
TIMER_READERS
-
kbase
protected org.kie.api.KieBase kbase -
ruleBaseConfig
-
marshallingConfig
protected org.kie.api.marshalling.MarshallingConfiguration marshallingConfig -
strategyStore
protected org.kie.api.marshalling.ObjectMarshallingStrategyStore strategyStore
-
-
Constructor Details
-
ProtobufMarshaller
public ProtobufMarshaller(org.kie.api.KieBase kbase, org.kie.api.marshalling.MarshallingConfiguration marshallingConfig)
-
-
Method Details
-
getInitializer
- Specified by:
getInitializerin interfaceInternalMarshaller
-
setInitializer
- Specified by:
setInitializerin interfaceInternalMarshaller
-
unmarshall
public org.kie.internal.runtime.StatefulKnowledgeSession unmarshall(InputStream stream) throws IOException, ClassNotFoundException - Specified by:
unmarshallin interfaceorg.kie.api.marshalling.Marshaller- Throws:
IOExceptionClassNotFoundException
-
unmarshall
public org.kie.internal.runtime.StatefulKnowledgeSession unmarshall(InputStream stream, org.kie.api.runtime.KieSessionConfiguration config, org.kie.api.runtime.Environment environment) throws IOException, ClassNotFoundException - Specified by:
unmarshallin interfaceorg.kie.api.marshalling.Marshaller- Throws:
IOExceptionClassNotFoundException
-
unmarshall
public void unmarshall(InputStream stream, org.kie.api.runtime.KieSession ksession) throws IOException, ClassNotFoundException - Specified by:
unmarshallin interfaceorg.kie.api.marshalling.Marshaller- Throws:
IOExceptionClassNotFoundException
-
marshall
public void marshall(OutputStream stream, org.kie.api.runtime.KieSession ksession) throws IOException - Specified by:
marshallin interfaceorg.kie.api.marshalling.Marshaller- Throws:
IOException
-
marshall
public void marshall(OutputStream stream, org.kie.api.runtime.KieSession ksession, long clockTime) throws IOException - Throws:
IOException
-
getMarshallingConfiguration
public org.kie.api.marshalling.MarshallingConfiguration getMarshallingConfiguration()- Specified by:
getMarshallingConfigurationin interfaceorg.kie.api.marshalling.Marshaller
-
unmarshallWithMessage
public ReadSessionResult unmarshallWithMessage(InputStream stream, org.kie.api.runtime.KieSessionConfiguration config, org.kie.api.runtime.Environment environment) throws IOException, ClassNotFoundException - Throws:
IOExceptionClassNotFoundException
-