public class ProtobufMarshaller extends Object implements InternalMarshaller
Modifier and Type | Field and Description |
---|---|
protected KieSessionInitializer |
initializer |
protected org.kie.api.KieBase |
kbase |
protected org.kie.api.marshalling.MarshallingConfiguration |
marshallingConfig |
protected RuleBaseConfiguration |
ruleBaseConfig |
protected org.kie.api.marshalling.ObjectMarshallingStrategyStore |
strategyStore |
static Map<Integer,TimersInputMarshaller> |
TIMER_READERS |
Constructor and Description |
---|
ProtobufMarshaller(org.kie.api.KieBase kbase,
org.kie.api.marshalling.MarshallingConfiguration marshallingConfig) |
Modifier and Type | Method and Description |
---|---|
KieSessionInitializer |
getInitializer() |
org.kie.api.marshalling.MarshallingConfiguration |
getMarshallingConfiguration() |
void |
marshall(OutputStream stream,
org.kie.api.runtime.KieSession ksession) |
void |
marshall(OutputStream stream,
org.kie.api.runtime.KieSession ksession,
long clockTime) |
void |
setInitializer(KieSessionInitializer initializer) |
org.kie.internal.runtime.StatefulKnowledgeSession |
unmarshall(InputStream stream) |
void |
unmarshall(InputStream stream,
org.kie.api.runtime.KieSession ksession) |
org.kie.internal.runtime.StatefulKnowledgeSession |
unmarshall(InputStream stream,
org.kie.api.runtime.KieSessionConfiguration config,
org.kie.api.runtime.Environment environment) |
ReadSessionResult |
unmarshallWithMessage(InputStream stream,
org.kie.api.runtime.KieSessionConfiguration config,
org.kie.api.runtime.Environment environment) |
protected KieSessionInitializer initializer
public static final Map<Integer,TimersInputMarshaller> TIMER_READERS
protected org.kie.api.KieBase kbase
protected RuleBaseConfiguration ruleBaseConfig
protected org.kie.api.marshalling.MarshallingConfiguration marshallingConfig
protected org.kie.api.marshalling.ObjectMarshallingStrategyStore strategyStore
public ProtobufMarshaller(org.kie.api.KieBase kbase, org.kie.api.marshalling.MarshallingConfiguration marshallingConfig)
public KieSessionInitializer getInitializer()
getInitializer
in interface InternalMarshaller
public void setInitializer(KieSessionInitializer initializer)
setInitializer
in interface InternalMarshaller
public org.kie.internal.runtime.StatefulKnowledgeSession unmarshall(InputStream stream) throws IOException, ClassNotFoundException
unmarshall
in interface org.kie.api.marshalling.Marshaller
IOException
ClassNotFoundException
public org.kie.internal.runtime.StatefulKnowledgeSession unmarshall(InputStream stream, org.kie.api.runtime.KieSessionConfiguration config, org.kie.api.runtime.Environment environment) throws IOException, ClassNotFoundException
unmarshall
in interface org.kie.api.marshalling.Marshaller
IOException
ClassNotFoundException
public void unmarshall(InputStream stream, org.kie.api.runtime.KieSession ksession) throws IOException, ClassNotFoundException
unmarshall
in interface org.kie.api.marshalling.Marshaller
IOException
ClassNotFoundException
public void marshall(OutputStream stream, org.kie.api.runtime.KieSession ksession) throws IOException
marshall
in interface org.kie.api.marshalling.Marshaller
IOException
public void marshall(OutputStream stream, org.kie.api.runtime.KieSession ksession, long clockTime) throws IOException
IOException
public org.kie.api.marshalling.MarshallingConfiguration getMarshallingConfiguration()
getMarshallingConfiguration
in interface org.kie.api.marshalling.Marshaller
public ReadSessionResult unmarshallWithMessage(InputStream stream, org.kie.api.runtime.KieSessionConfiguration config, org.kie.api.runtime.Environment environment) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.