Exemple #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public long checkPointIfNeeded(TriggerInfo info) throws java.io.IOException
        public override long CheckPointIfNeeded(TriggerInfo info)
        {
            if (_threshold.isCheckPointingNeeded(_transactionIdStore.LastClosedTransactionId, info))
            {
                using (Resource @lock = _mutex.checkPoint())
                {
                    return(DoCheckPoint(info));
                }
            }
            return(-1);
        }