Package com.banuba.sdk
Class Recycler
java.lang.Object
com.banuba.sdk.Recycler
Helper class to manually release Banuba SDK native objects before GC run.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Helper class for try-with-resource statement. -
Method Summary
-
Method Details
-
recycle
public static <T> T recycle(@Nullable T obj) Recycle Banuba SDK object. Call to force-release native memory associated with the object. The object must not be reused after this operation. Usage `obj = Recycler.recycle(obj);`- Type Parameters:
T
-- Parameters:
obj
-- Returns:
- null
-