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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BcreateBatch()Creates a batch.BatchContextresumeBatch(B batch)Resumes a batch.BsuspendBatch()Suspends a batch.
-
-
-
Method Detail
-
createBatch
B createBatch()
Creates a batch.- Returns:
- a batch.
-
resumeBatch
BatchContext resumeBatch(B batch)
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
-
-