Package io.getunleash.engine
Class NativeBridge
java.lang.Object
io.getunleash.engine.NativeBridge
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidflatBufFree(ByteBuffer buf) static ByteBufferstatic ByteBufferflatCheckEnabled(long enginePtr, ByteBuffer ctx, long len) static ByteBufferflatCheckVariant(long enginePtr, ByteBuffer ctx, long len) static ByteBufferflatGetMetrics(long enginePtr) static StringflatGetState(long enginePtr) static ByteBufferflatListKnownToggles(long enginePtr) static ByteBufferflatTakeState(long enginePtr, String togglesJson) static voidfreeEngine(long ptr) static Stringstatic long
-
Constructor Details
-
NativeBridge
public NativeBridge()
-
-
Method Details
-
newEngine
public static long newEngine() -
freeEngine
public static void freeEngine(long ptr) -
flatTakeState
- Throws:
NativeException
-
flatGetState
- Throws:
NativeException
-
flatCheckEnabled
public static ByteBuffer flatCheckEnabled(long enginePtr, ByteBuffer ctx, long len) throws NativeException - Throws:
NativeException
-
flatCheckVariant
public static ByteBuffer flatCheckVariant(long enginePtr, ByteBuffer ctx, long len) throws NativeException - Throws:
NativeException
-
flatListKnownToggles
- Throws:
NativeException
-
flatBuiltInStrategies
- Throws:
NativeException
-
flatGetMetrics
- Throws:
NativeException
-
getCoreVersion
-
flatBufFree
-