@ Override public final void persistLock ( final Transaction transaction ) throws ProtocolException , TransactionException , SevereMessageStoreException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "persistLock" , transaction ) ; if ( null != transaction ) { PersistentTransaction mstran = ( PersistentTransaction ) transaction ; cmdPersistLock ( mstran ) ; getTuple ( ) . setLockID ( getLockID ( ) ) ; final Task task = new PersistLock ( this ) ; mstran . addWork ( task ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "persistLock" ) ; }
Use this to lock persistently . Invoke indirectly by the API .