Ends an existing ongoing batch. A no-op if a batch has not been started yet.
Note that if there is an existing transaction in scope and the cache has been configured to use a JTA compliant transaction manager, calls to {@link #startBatch()} and {@link #endBatch(boolean)} are ignored and treated as no-ops.
@param successful if
true, changes made in the batch are committed. If
false, they are discarded.
@see #startBatch()
@since 3.0