Class BinaryContextHolder
- java.lang.Object
-
- org.apache.ignite.internal.binary.BinaryContextHolder
-
public class BinaryContextHolder extends Object
Binary context holder. We use to avoidThreadLocal.clear()and/or {{}}ThreadLocal.set()}} operations on every serialization/deserialization, as they may take considerable amount of CPU time (confirmed by benchmarks).
-
-
Constructor Summary
Constructors Constructor Description BinaryContextHolder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable BinaryContextget()@Nullable BinaryContextset(@Nullable BinaryContext newCtx)
-
-
-
Method Detail
-
get
@Nullable public @Nullable BinaryContext get()
- Returns:
- Context.
-
set
@Nullable public @Nullable BinaryContext set(@Nullable @Nullable BinaryContext newCtx)
- Parameters:
newCtx- New context.- Returns:
- Previous context.
-
-