Package io.micronaut.transaction.support
Interface ResourceHolder
-
- All Known Implementing Classes:
ConnectionHolder,EntityManagerHolder,ResourceHolderSupport,SessionHolder
public interface ResourceHolderGeneric interface to be implemented by resource holders. Allows transaction infrastructure to introspect and reset the holder when necessary.- Since:
- 2.5.5
- Author:
- Juergen Hoeller, graemerocher
- See Also:
ResourceHolderSupport
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisVoid()Determine whether this holder is considered as 'void', i.e.voidreset()Reset the transactional state of this holder.voidunbound()Notify this holder that it has been unbound from transaction synchronization.
-
-
-
Method Detail
-
reset
void reset()
Reset the transactional state of this holder.
-
unbound
void unbound()
Notify this holder that it has been unbound from transaction synchronization.
-
isVoid
boolean isVoid()
Determine whether this holder is considered as 'void', i.e. as a leftover from a previous thread.- Returns:
- If the resource is void
-
-