Skip to content

Instantly share code, notes, and snippets.

@tristantarrant
Created February 1, 2012 14:52
Show Gist options
  • Select an option

  • Save tristantarrant/1717390 to your computer and use it in GitHub Desktop.

Select an option

Save tristantarrant/1717390 to your computer and use it in GitHub Desktop.
if (cache.hasDefined(ModelKeys.BATCHING)) {
InvocationBatchingConfigurationBuilder batchingBuilder = builder.transaction().transactionMode(org.infinispan.transaction.TransactionMode.TRANSACTIONAL).invocationBatching();
if (cache.get(ModelKeys.BATCHING).asBoolean()) {
batchingBuilder.enable();
} else {
batchingBuilder.disable();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment