Skip to content

Instantly share code, notes, and snippets.

@clebertsuconic
Created May 26, 2017 18:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clebertsuconic/75128b8b3f788d7a9d3b213224b5be39 to your computer and use it in GitHub Desktop.
Save clebertsuconic/75128b8b3f788d7a9d3b213224b5be39 to your computer and use it in GitHub Desktop.
public final class ActiveMQBuffers {
private static final ByteBufAllocator ALLOCATOR;
static {
boolean usePool = Boolean.getBoolean(System.getProperty("org.apache.activemq.usePool", "true"));
ALLOCATOR = usePool ? PooledByteBufAllocator.DEFAULT : UnpooledByteBufAllocator.DEFAULT;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment