Interface ReadTransaction
-
- All Superinterfaces:
AutoCloseable,MdibAccess
- All Known Implementing Classes:
ReadTransactionImpl
public interface ReadTransaction extends MdibAccess, AutoCloseable
Definition of an auto-closeable interface that allows to invoke read functions without getting distracted by write calls.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidclose()Creates an empty default to override AutoCloseable.close().-
Methods inherited from interface org.somda.sdc.biceps.common.access.MdibAccess
findContextStatesByType, findEntitiesByType, getChildrenByType, getContextStates, getContextStates, getContextStates, getDescriptor, getDescriptor, getEntity, getMdDescriptionVersion, getMdibVersion, getMdStateVersion, getRootEntities, getState, getState
-
-
-
-
Method Detail
-
close
default void close()
Creates an empty default to override AutoCloseable.close().AutoCloseable.close()throws an exception whereas ReadTransaction is supposed to be no-throw. In order to avoid a boiler plate catch branch that is never visited when usingtry(...)with ReadTransaction, this function overrides theAutoCloseable.close()function without throwing a checked exception.- Specified by:
closein interfaceAutoCloseable- See Also:
AutoCloseable.close()
-
-