Package org.wildfly.clustering.ee
Interface Batcher<B extends Batch>
public interface Batcher<B extends Batch>
Exposes a mechanism to handle batching.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptionCreates a batch.resumeBatch(B batch) Resumes a batch.Suspends a batch.
-
Method Details
-
createBatch
B createBatch()Creates a batch.- Returns:
- a batch.
-
resumeBatch
Resumes a batch. Used if the specified batch was (or may have been) created by another thread.- Parameters:
batch- an existing batch- Returns:
- the context of the resumed batch
-
suspendBatch
B suspendBatch()Suspends a batch.- Returns:
- the previously active batch, or null if there was no active batch
-