Ejemplo n.º 1
0
 protected internal EntryUpdater <Key> Updater()
 {
     using (LockWrapper @lock = readLock(_updateLock, _logger))
     {
         return(State.unsafeUpdater(@lock.Get()));
     }
 }
Ejemplo n.º 2
0
//JAVA TO C# CONVERTER WARNING: 'final' parameters are ignored unless the option to convert to C# 7.2 'in' parameters is selected:
//ORIGINAL LINE: protected final java.util.Optional<EntryUpdater<Key>> updater(final long version)
        protected internal Optional <EntryUpdater <Key> > Updater(long version)
        {
            using (LockWrapper @lock = readLock(_updateLock, _logger))
            {
                return(State.optionalUpdater(version, @lock.Get()));
            }
        }
Ejemplo n.º 3
0
 protected internal EntryUpdater <Key> Resetter(long version)
 {
     using (LockWrapper @lock = writeLock(_updateLock, _logger))
     {
         ProgressiveState <Key> current = State;
         return(current.Resetter(@lock.Get(), new RotationTask(this, version)));
     }
 }