Class JDBCPairwiseIdStore.ConnectionWithLock

java.lang.Object
net.shibboleth.idp.attribute.impl.JDBCPairwiseIdStore.ConnectionWithLock
All Implemented Interfaces:
AutoCloseable
Enclosing class:
JDBCPairwiseIdStore

protected class JDBCPairwiseIdStore.ConnectionWithLock extends Object implements AutoCloseable
A Class to encapsulate a Connection protected by an optional read/write lock. Because the class implements AutoCloseable the unlock can "just happen"
  • Field Details

    • connection

      @Nonnull private final Connection connection
      The connection we set up.
    • threadLock

      @Nullable private final Lock threadLock
      The lock we may or may not have set up.
  • Constructor Details

    • ConnectionWithLock

      public ConnectionWithLock(boolean autoCommit, boolean writeLock) throws SQLException
      Constructor.
      Parameters:
      autoCommit -
      writeLock -
      Throws:
      SQLException
  • Method Details