Package org.jctools.channels.mapping
Class Mapper<S>
java.lang.Object
org.jctools.channels.mapping.Mapper<S>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SimpleCompiler
private final boolean
private final TypeInspector
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
checkCompileFailures
(String templateFile, CompilationResult result) private void
debugLogSource
(String source) int
private Class<?>[]
private <I> I
instantiateImplementation
(Class<?>[] constructorParameterTypes, String name, CompilationResult result, Object[] args) <I> I
newFlyweight
(Class<I> implementationParent, String templateFileName, Object... args) <I> I
newFlyweight
(Class<I> implementationParent, String templateFileName, Template template, Object... args)
-
Field Details
-
debugEnabled
private final boolean debugEnabled -
inspector
-
structInterface
-
compiler
-
-
Constructor Details
-
Mapper
-
-
Method Details
-
getSizeInBytes
public int getSizeInBytes()- Returns:
- the size that each message takes up in bytes
-
newFlyweight
-
newFlyweight
-
debugLogSource
-
instantiateImplementation
private <I> I instantiateImplementation(Class<?>[] constructorParameterTypes, String name, CompilationResult result, Object[] args) -
checkCompileFailures
-
getTypes
-