Class ProtobufMarshallerWriteContext

    • Constructor Detail

      • ProtobufMarshallerWriteContext

        public ProtobufMarshallerWriteContext​(OutputStream stream,
                                              org.drools.kiesession.rulebase.InternalKnowledgeBase kBase,
                                              org.drools.core.common.InternalWorkingMemory wm,
                                              Map<Integer,​org.drools.core.common.BaseNode> sinks,
                                              org.kie.api.marshalling.ObjectMarshallingStrategyStore resolverStrategyFactory,
                                              org.kie.api.runtime.Environment env)
                                       throws IOException
        Throws:
        IOException
      • ProtobufMarshallerWriteContext

        public ProtobufMarshallerWriteContext​(OutputStream stream,
                                              org.drools.kiesession.rulebase.InternalKnowledgeBase kBase,
                                              org.drools.core.common.InternalWorkingMemory wm,
                                              Map<Integer,​org.drools.core.common.BaseNode> sinks,
                                              org.kie.api.marshalling.ObjectMarshallingStrategyStore resolverStrategyFactory,
                                              boolean marshalProcessInstances,
                                              boolean marshalWorkItems,
                                              org.kie.api.runtime.Environment env)
                                       throws IOException
        Throws:
        IOException
    • Method Detail

      • getMarshallingStrategy

        protected org.kie.api.marshalling.ObjectMarshallingStrategy[] getMarshallingStrategy()
      • getStrategyIndex

        public Integer getStrategyIndex​(org.kie.api.marshalling.ObjectMarshallingStrategy strategy)
        Specified by:
        getStrategyIndex in interface org.drools.core.marshalling.MarshallerWriteContext
      • getKnowledgeBase

        public org.drools.kiesession.rulebase.InternalKnowledgeBase getKnowledgeBase()
        Specified by:
        getKnowledgeBase in interface org.drools.core.marshalling.MarshallerWriteContext
      • getObjectMarshallingStrategyStore

        public org.kie.api.marshalling.ObjectMarshallingStrategyStore getObjectMarshallingStrategyStore()
        Specified by:
        getObjectMarshallingStrategyStore in interface org.drools.core.marshalling.MarshallerWriteContext
      • getParameterObject

        public Object getParameterObject()
        Specified by:
        getParameterObject in interface org.drools.core.marshalling.MarshallerWriteContext
      • setParameterObject

        public void setParameterObject​(Object parameterObject)
        Specified by:
        setParameterObject in interface org.drools.core.marshalling.MarshallerWriteContext
      • getWorkingMemory

        public org.drools.core.common.InternalWorkingMemory getWorkingMemory()
        Specified by:
        getWorkingMemory in interface org.drools.core.marshalling.MarshallerWriteContext
      • getStrategyContext

        public Map<org.kie.api.marshalling.ObjectMarshallingStrategy,​org.kie.api.marshalling.ObjectMarshallingStrategy.Context> getStrategyContext()
        Specified by:
        getStrategyContext in interface org.drools.core.marshalling.MarshallerWriteContext
      • getUsedStrategies

        public Map<org.kie.api.marshalling.ObjectMarshallingStrategy,​Integer> getUsedStrategies()
        Specified by:
        getUsedStrategies in interface org.drools.core.marshalling.MarshallerWriteContext
      • getSinks

        public Map<Integer,​org.drools.core.common.BaseNode> getSinks()
        Specified by:
        getSinks in interface org.drools.core.marshalling.MarshallerWriteContext
      • isMarshalProcessInstances

        public boolean isMarshalProcessInstances()
        Specified by:
        isMarshalProcessInstances in interface org.drools.core.marshalling.MarshallerWriteContext
      • isMarshalWorkItems

        public boolean isMarshalWorkItems()
        Specified by:
        isMarshalWorkItems in interface org.drools.core.marshalling.MarshallerWriteContext
      • getEnvironment

        public org.kie.api.runtime.Environment getEnvironment()
        Specified by:
        getEnvironment in interface org.drools.core.marshalling.MarshallerWriteContext
      • getClockTime

        public long getClockTime()
        Specified by:
        getClockTime in interface org.drools.core.marshalling.MarshallerWriteContext
      • setClockTime

        public void setClockTime​(long clockTime)
        Specified by:
        setClockTime in interface org.drools.core.marshalling.MarshallerWriteContext
      • getWriterForClass

        public Object getWriterForClass​(Class<?> c)
        Specified by:
        getWriterForClass in interface org.drools.core.marshalling.MarshallerWriteContext
      • setWriterForClass

        public void setWriterForClass​(Class<?> c,
                                      Object writer)
        Specified by:
        setWriterForClass in interface org.drools.core.marshalling.MarshallerWriteContext