Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for UpdateAction (0.27 sec)

  1. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/FileBackedObjectHolder.java

        }
    
        @Override
        public T update(final UpdateAction<T> updateAction) {
            class Updater implements Runnable {
                private final UpdateAction<T> updateAction;
    
                private T result;
    
                private Updater(UpdateAction<T> updateAction) {
                    this.updateAction = updateAction;
                }
    
                @Override
                public void run() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:50 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/FileIntegrityViolationSuppressingObjectHolderDecorator.java

        }
    
        @Override
        public T update(final UpdateAction<T> updateAction) {
            return doUpdate(updateAction, () -> delegate.update(updateAction));
        }
    
        @Override
        public T maybeUpdate(final UpdateAction<T> updateAction) {
            return doUpdate(updateAction, () -> delegate.maybeUpdate(updateAction));
        }
    
        private T doUpdate(UpdateAction<T> updateAction, Supplier<T> work) {
            try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:50 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  3. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/ObjectHolder.java

         * Replaces the value for this cache.
         *
         * An exclusive lock is held while the update action is executing.
         * The result of the update is returned.
         */
        T update(UpdateAction<T> updateAction);
    
        interface UpdateAction<T> {
            T update(T oldValue);
        }
    
        /**
         * Potentially replaces the value for this cache
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  4. platforms/native/language-native/src/main/java/org/gradle/language/nativeplatform/internal/incremental/DefaultCompilationStateCacheFactory.java

            }
    
            @Override
            public CompilationState update(UpdateAction<CompilationState> updateAction) {
                throw new UnsupportedOperationException();
            }
    
            @Override
            public CompilationState maybeUpdate(UpdateAction<CompilationState> updateAction) {
                throw new UnsupportedOperationException();
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 20:25:05 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  5. pkg/controller/deployment/rolling_test.go

    		// action for verification.
    		var updateAction core.UpdateAction
    		for _, action := range fakeClientset.Actions() {
    			switch a := action.(type) {
    			case core.UpdateAction:
    				if updateAction != nil {
    					t.Errorf("expected only 1 update action; had %v and found %v", updateAction, a)
    				} else {
    					updateAction = a
    				}
    			}
    		}
    		if updateAction == nil {
    			t.Errorf("expected an update action")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 09:10:50 UTC 2023
    - 11K bytes
    - Viewed (0)
  6. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/registry/PersistentDaemonRegistry.java

        @Override
        public void remove(final Address address) {
            lock.lock();
            try {
                LOGGER.debug("Removing daemon address: {}", address);
                cache.update(new ObjectHolder.UpdateAction<DaemonRegistryContent>() {
                    @Override
                    public DaemonRegistryContent update(DaemonRegistryContent oldValue) {
                        if (oldValue == null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:38 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  7. platforms/native/language-native/src/test/groovy/org/gradle/language/nativeplatform/internal/incremental/IncrementalCompileProcessorTest.groovy

                this.compilationState = newValue
            }
    
            CompilationState update(ObjectHolder.UpdateAction<CompilationState> updateAction) {
                throw new UnsupportedOperationException()
            }
    
            @Override
            CompilationState maybeUpdate(ObjectHolder.UpdateAction<CompilationState> updateAction) {
                throw new UnsupportedOperationException()
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 15:31:28 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  8. pkg/controller/statefulset/stateful_pod_control_test.go

    	fakeClient.AddReactor("update", "pods", func(action core.Action) (bool, runtime.Object, error) {
    		update := action.(core.UpdateAction)
    		return true, update.GetObject(), nil
    	})
    	fakeClient.AddReactor("create", "persistentvolumeclaims", func(action core.Action) (bool, runtime.Object, error) {
    		update := action.(core.UpdateAction)
    		return true, update.GetObject(), nil
    	})
    	var updated *v1.Pod
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 35.5K bytes
    - Viewed (0)
  9. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/FileBackedObjectHolderTest.groovy

            then:
            1 * fileAccess.writeFile(!null) >> { it[0].run() }
    
            when:
            cache.update({ value ->
                assert value == "foo"
                return "foo bar"
            } as ObjectHolder.UpdateAction)
    
            then:
            1 * fileAccess.updateFile(!null) >> { it[0].run() }
    
            when:
            def result = cache.get()
    
            then:
            result == "foo bar"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:50 UTC 2024
    - 5K bytes
    - Viewed (0)
  10. pkg/controller/volume/attachdetach/testing/testvolumespec.go

    		updateAction := action.(core.UpdateAction)
    		node := updateAction.GetObject().(*v1.Node)
    		for index, n := range nodes.Items {
    			if n.Name == node.Name {
    				nodes.Items[index] = *node
    			}
    		}
    		return true, updateAction.GetObject(), nil
    	})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 17 08:48:30 UTC 2023
    - 16.5K bytes
    - Viewed (0)
Back to top