Class ProtobufMarshaller

  • All Implemented Interfaces:
    org.drools.core.marshalling.impl.InternalMarshaller, org.kie.api.marshalling.Marshaller

    public class ProtobufMarshaller
    extends Object
    implements org.drools.core.marshalling.impl.InternalMarshaller
    A Marshaller implementation that uses ProtoBuf as the marshalling framework in order to support backward compatibility with marshalled sessions
    • Field Detail

      • initializer

        protected org.drools.core.marshalling.impl.KieSessionInitializer initializer
      • kbase

        protected org.kie.api.KieBase kbase
      • ruleBaseConfig

        protected org.drools.core.RuleBaseConfiguration ruleBaseConfig
      • marshallingConfig

        protected org.kie.api.marshalling.MarshallingConfiguration marshallingConfig
      • strategyStore

        protected org.kie.api.marshalling.ObjectMarshallingStrategyStore strategyStore
    • Constructor Detail

      • ProtobufMarshaller

        public ProtobufMarshaller​(org.kie.api.KieBase kbase,
                                  org.kie.api.marshalling.MarshallingConfiguration marshallingConfig)
    • Method Detail

      • getInitializer

        public org.drools.core.marshalling.impl.KieSessionInitializer getInitializer()
        Specified by:
        getInitializer in interface org.drools.core.marshalling.impl.InternalMarshaller
      • setInitializer

        public void setInitializer​(org.drools.core.marshalling.impl.KieSessionInitializer initializer)
        Specified by:
        setInitializer in interface org.drools.core.marshalling.impl.InternalMarshaller
      • marshall

        public void marshall​(OutputStream stream,
                             org.kie.api.runtime.KieSession ksession)
                      throws IOException
        Specified by:
        marshall in interface org.kie.api.marshalling.Marshaller
        Throws:
        IOException
      • getMarshallingConfiguration

        public org.kie.api.marshalling.MarshallingConfiguration getMarshallingConfiguration()
        Specified by:
        getMarshallingConfiguration in interface org.kie.api.marshalling.Marshaller