Class MicroStreamAndroidAdapter
public final class MicroStreamAndroidAdapter extends Object
-
Method Summary
Modifier and Type Method Description static voidsetupBasic()Sets up the memory accessing logic to useMemoryAccessorGeneric.static voidsetupFull()Sets up the memory accessing logic to useMemoryAccessorGeneric.static voidsetupWithInstantiator()Sets up the memory accessing logic to useMemoryAccessorGeneric.
-
Method Details
-
setupBasic
public static final void setupBasic()Sets up the memory accessing logic to useMemoryAccessorGeneric.No platform-specific
DefaultInstantiatoris set, meaning the behavior defaults to public API functionality, i.e. requiring a default constructor to be present for every generically handled class.No platform-specific
DirectBufferDeallocatoris set, meaning the memory allocated by direct byte buffers cannot be freed before the direct byte buffer instance is garbage-collected. See this Stack Overflow question for an example why that might be a problem.- See Also:
setupWithInstantiator(),setupFull()
-
setupWithInstantiator
public static final void setupWithInstantiator()Sets up the memory accessing logic to useMemoryAccessorGeneric.AndroidInstantiatorBlankist used as theDefaultInstantiatorimplementation.No platform-specific
DirectBufferDeallocatoris set, identical tosetupBasic().- See Also:
setupBasic(),setupFull()
-
setupFull
public static final void setupFull()Sets up the memory accessing logic to useMemoryAccessorGeneric.AndroidInstantiatorBlankist used as theDefaultInstantiatorimplementation.AndroidDirectBufferDeallocatoris used as theDirectBufferDeallocator.- See Also:
setupBasic(),setupWithInstantiator()
-