Package io.objectbox
Class InternalAccess
- java.lang.Object
-
- io.objectbox.InternalAccess
-
@Internal public class InternalAccess extends java.lang.Object
Exposes internal APIs to tests and code in other packages.
-
-
Constructor Summary
Constructors Constructor Description InternalAccess()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BoxStoreBuilderclone(BoxStoreBuilder original, java.lang.String namePostfix)static <T> voidcommitWriter(Box<T> box, Cursor<T> writer)static voidenableCreationStackTracking()Makes creation more expensive, but lets Finalizers show the creation stack for dangling resources.static TransactiongetActiveTx(BoxStore boxStore)static <T> Cursor<T>getActiveTxCursor(Box<T> box)static <T> longgetActiveTxCursorHandle(Box<T> box)static longgetHandle(Transaction tx)static <T> Cursor<T>getWriter(Box<T> box)static voidsetSyncClient(BoxStore boxStore, SyncClient syncClient)
-
-
-
Method Detail
-
getActiveTx
@Internal public static Transaction getActiveTx(BoxStore boxStore)
-
getHandle
@Internal public static long getHandle(Transaction tx)
-
setSyncClient
@Internal public static void setSyncClient(BoxStore boxStore, @Nullable SyncClient syncClient)
-
enableCreationStackTracking
@Internal public static void enableCreationStackTracking()
Makes creation more expensive, but lets Finalizers show the creation stack for dangling resources.Currently used by integration tests.
-
clone
@Internal public static BoxStoreBuilder clone(BoxStoreBuilder original, java.lang.String namePostfix)
-
-