public interface MarshallerContext
Modifier and Type | Method and Description |
---|---|
IgnitePredicate<String> |
classNameFilter()
Returns class name filter.
|
Class |
getClass(int typeId,
ClassLoader ldr)
Gets class for provided type ID.
|
String |
getClassName(byte platformId,
int typeId)
Gets class name for provided (platformId, typeId) pair.
|
boolean |
isSystemType(String typeName)
Checks whether the given type is a system one - JDK class or Ignite class.
|
JdkMarshaller |
jdkMarshaller()
Returns JDK marshaller instance.
|
boolean |
registerClassName(byte platformId,
int typeId,
String clsName)
Deprecated.
Use
registerClassName(byte, int, java.lang.String, boolean) instead.
This particular method will be deleted in future releases. |
default boolean |
registerClassName(byte platformId,
int typeId,
String clsName,
boolean failIfUnregistered)
Method to register typeId->class name mapping in marshaller context cluster-wide.
|
boolean |
registerClassNameLocally(byte platformId,
int typeId,
String clsName)
Method to register typeId->class name mapping in marshaller context on local node only.
|
default boolean registerClassName(byte platformId, int typeId, String clsName, boolean failIfUnregistered) throws IgniteCheckedException
platformId
- Id of a platform (java, .NET, etc.) to register mapping for.typeId
- Type ID.clsName
- Class name.failIfUnregistered
- If true
then throw UnregisteredBinaryTypeException
with
registration future instead of synchronously awaiting for its completion.True
if mapping was registered successfully.IgniteCheckedException
- In case of error.@Deprecated boolean registerClassName(byte platformId, int typeId, String clsName) throws IgniteCheckedException
registerClassName(byte, int, java.lang.String, boolean)
instead.
This particular method will be deleted in future releases.registerClassName(byte, int, java.lang.String, boolean)
but with shortened
parameters list.IgniteCheckedException
boolean registerClassNameLocally(byte platformId, int typeId, String clsName) throws IgniteCheckedException
platformId
- Id of a platform (java, .NET, etc.) to register mapping for.typeId
- Type id.clsName
- Class name.True
if class mapping was registered successfully.IgniteCheckedException
- In case of error.Class getClass(int typeId, ClassLoader ldr) throws ClassNotFoundException, IgniteCheckedException
typeId
- Type ID.ldr
- Class loader.ClassNotFoundException
- If class was not found.IgniteCheckedException
- In case of any other error.String getClassName(byte platformId, int typeId) throws ClassNotFoundException, IgniteCheckedException
platformId
- id of a platform the class was registered for.typeId
- Type ID.ClassNotFoundException
- If class was not found.IgniteCheckedException
- In case of any other error.boolean isSystemType(String typeName)
typeName
- Type name.true
if the type is a system one, false
otherwise.IgnitePredicate<String> classNameFilter()
JdkMarshaller jdkMarshaller()
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024