public interface TransactionalEventStreamWriter<Type>
extends java.lang.AutoCloseable
Transaction.commit()
. This
will result in either all of those events going into the stream or none of them and the commit
call failing with an exception.
Prior to committing a transaction, the events written to it cannot be read or otherwise seen by
readers.Modifier and Type | Method and Description |
---|---|
Transaction<Type> |
beginTxn()
Start a new transaction on this stream.
|
void |
close()
Closes the writer.
|
EventWriterConfig |
getConfig()
Returns the configuration that this writer was created with.
|
Transaction<Type> |
getTxn(java.util.UUID transactionId)
Returns a previously created transaction.
|
Transaction<Type> beginTxn()
EventWriterConfig.transactionTimeoutTime
.Transaction<Type> getTxn(java.util.UUID transactionId)
transactionId
- The result retained from calling Transaction.getTxnId()
EventWriterConfig getConfig()
void close()
close
in interface java.lang.AutoCloseable