public interface MessageTransaction
extends java.lang.AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
addClosable(java.lang.AutoCloseable closeable) |
TransactedExchange |
addExchange(java.lang.String exchangeId)
Adds an exchange to the transaction.
|
TransactedExchange |
getExchange(java.lang.String exchangeId)
Returns the exchange in the transaction with the given ID (if present).
|
java.util.List |
getExchanges()
Returns an ordered list of exchange ID's that have been executed within
the context of the transaction.
|
java.util.Map |
getProperties()
Provides direct access to the Map of properties for the transaction.
|
java.lang.Object |
getProperty(java.lang.String name)
Returns the property with the given name.
|
java.util.Set |
getPropertyNames()
Returns the names of the properties associated with the context.
|
java.lang.String |
getTransactionID()
Returns a unique identifier for a transaction.
|
void |
setProperty(java.lang.String name,
java.lang.Object property)
Adds or replaces a property.
|
java.lang.String getTransactionID()
java.lang.Object getProperty(java.lang.String name)
name
- Name of the property.void setProperty(java.lang.String name, java.lang.Object property)
name
- Name of the property.property
- Value of the property.java.util.Set getPropertyNames()
java.util.Map getProperties()
java.util.List getExchanges()
TransactedExchange addExchange(java.lang.String exchangeId)
exchangeId
- ID of the exchange.TransactedExchange getExchange(java.lang.String exchangeId)
exchangeId
- ID of the exchange.void addClosable(java.lang.AutoCloseable closeable)
?? 2022 Perforce Software, All rights reserved
This software is the confidential and proprietary information of Perforce, Inc. and is subject to copyright protection under laws of the United States of America and other countries. The use of this software should be in accordance with the license agreement terms you entered into with Perforce, Inc.