code: public void setLockingMode( @Nullable final String lockingMode ) {
          if ( lockingMode == null && _lockingMode == null
                  || lockingMode != null && lockingMode.equals( _lockingMode ) ) {
              return;
          }
          _lockingMode = lockingMode;
          if ( _manager.isInitialized() ) {
              initNonStickyLockingMode( createMemcachedNodesManager( _memcachedNodes, _failoverNodes ) );
          }
      }
docs: Sets the session locking mode. Possible values:
  <ul>
  <li><code>none</code> - does not lock the session at all (default for non-sticky sessions).</li>
  <li><code>all</code> - the session is locked for each request accessing the session.</li>
  <li><code>auto</code> - locks the session for each request except for those the were detected to access the session only readonly.</li>
  <li><code>uriPattern:&lt;regexp&gt;</code> - locks the session for each request with a request uri (with appended querystring) matching
  the provided regular expression.</li>
  </ul>