Package org.wildfly.clustering.ee
Interface Batch
-
- All Superinterfaces:
AutoCloseable
public interface Batch extends AutoCloseable
Exposes a mechanism to close a batch, and potentially discard it.- Author:
- Paul Ferraro
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classBatch.StateThe possible states of a batch.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Closes this batch.voiddiscard()Discards this batch.Batch.StategetState()Returns the state of this batch.
-
-
-
Method Detail
-
close
void close()
Closes this batch. Batch may or may not have been discarded.- Specified by:
closein interfaceAutoCloseable
-
discard
void discard()
Discards this batch. A discarded batch must still be closed.
-
getState
Batch.State getState()
Returns the state of this batch.- Returns:
- the state of this batch.
-
-