Package org.axonframework.common.jdbc
Class ConnectionWrapperFactory.NoOpCloseHandler
java.lang.Object
org.axonframework.common.jdbc.ConnectionWrapperFactory.NoOpCloseHandler
- All Implemented Interfaces:
ConnectionWrapperFactory.ConnectionCloseHandler
- Enclosing class:
ConnectionWrapperFactory
public static class ConnectionWrapperFactory.NoOpCloseHandler
extends Object
implements ConnectionWrapperFactory.ConnectionCloseHandler
Implementation of ConnectionCloseHandler that does nothing on close or commit.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose(Connection connection) Close the givenconnection, which was wrapped by the ConnectionWrapperFactory.voidcommit(Connection connection) Commits the underlying transaction
-
Constructor Details
-
NoOpCloseHandler
public NoOpCloseHandler()
-
-
Method Details
-
close
Description copied from interface:ConnectionWrapperFactory.ConnectionCloseHandlerClose the givenconnection, which was wrapped by the ConnectionWrapperFactory.- Specified by:
closein interfaceConnectionWrapperFactory.ConnectionCloseHandler- Parameters:
connection- the wrapped connection to close
-
commit
Description copied from interface:ConnectionWrapperFactory.ConnectionCloseHandlerCommits the underlying transaction- Specified by:
commitin interfaceConnectionWrapperFactory.ConnectionCloseHandler- Parameters:
connection- the wrapped connection to commit
-