Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 52 for onEvent (0.04 seconds)

  1. okhttp-sse/src/main/kotlin/okhttp3/sse/internal/RealEventSource.kt

      }
    
      override fun request(): Request = request
    
      override fun cancel() {
        canceled = true
        call?.cancel()
      }
    
      override fun onEvent(
        id: String?,
        type: String?,
        data: String,
      ) {
        listener.onEvent(this, id, type, data)
      }
    
      override fun onRetryChange(timeMs: Long) {
        // Ignored. We do not auto-retry.
      }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Oct 03 07:51:20 GMT 2025
    - 3.2K bytes
    - Click Count (0)
  2. compat/maven-embedder/src/main/java/org/apache/maven/cli/configuration/SettingsXmlConfigurationProcessor.java

            }
            settingsRequest.setUserProperties(props);
    
            if (request.getEventSpyDispatcher() != null) {
                request.getEventSpyDispatcher().onEvent(settingsRequest);
            }
    
            LOGGER.debug(
                    "Reading installation settings from '{}'",
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sat Apr 19 18:49:57 GMT 2025
    - 12K bytes
    - Click Count (0)
  3. impl/maven-core/src/main/java/org/apache/maven/artifact/handler/manager/LegacyArtifactHandlerManager.java

        @Inject
        public LegacyArtifactHandlerManager(Map<String, ArtifactHandler> artifactHandlers) {
            this.artifactHandlers = requireNonNull(artifactHandlers);
        }
    
        @Override
        public void onEvent(Object event) {
            if (event instanceof ExecutionEvent executionEvent) {
                if (executionEvent.getType() == ExecutionEvent.Type.SessionEnded) {
                    allHandlers.clear();
                }
            }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jan 10 08:42:00 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  4. impl/maven-core/src/main/java/org/apache/maven/artifact/handler/manager/DefaultArtifactHandlerManager.java

            this.typeRegistry = requireNonNull(typeRegistry, "null typeRegistry");
            this.allHandlers = new ConcurrentHashMap<>();
        }
    
        @Override
        public void onEvent(Object event) {
            if (event instanceof ExecutionEvent executionEvent) {
                if (executionEvent.getType() == ExecutionEvent.Type.SessionEnded) {
                    allHandlers.clear();
                }
            }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jan 10 08:42:00 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  5. impl/maven-core/src/main/java/org/apache/maven/eventspy/EventSpy.java

         * @see org.apache.maven.project.DependencyResolutionResult
         * @see org.apache.maven.execution.ExecutionEvent
         * @see org.eclipse.aether.RepositoryEvent
         */
        void onEvent(Object event) throws Exception;
    
        /**
         * Notifies the spy of Maven's termination, allowing it to free any resources allocated by it.
         */
        void close() throws Exception;
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Feb 10 15:02:53 GMT 2025
    - 2.6K bytes
    - Click Count (0)
  6. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultTypeRegistry.java

            this.usedTypes = new ConcurrentHashMap<>();
            this.manager = requireNonNull(manager, "artifactHandlerManager cannot be null");
        }
    
        @Override
        public void onEvent(Object event) {
            if (event instanceof ExecutionEvent executionEvent) {
                if (executionEvent.getType() == ExecutionEvent.Type.SessionEnded) {
                    usedTypes.clear();
                }
            }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed May 14 04:47:58 GMT 2025
    - 4K bytes
    - Click Count (0)
  7. okhttp-sse/src/test/java/okhttp3/sse/internal/ServerSentEventIteratorTest.kt

        assertThat(callbacks).isEmpty()
      }
    
      private fun consumeEvents(source: String) {
        val callback: ServerSentEventReader.Callback =
          object : ServerSentEventReader.Callback {
            override fun onEvent(
              id: String?,
              type: String?,
              data: String,
            ) {
              callbacks.add(Event(id, type, data))
            }
    
            override fun onRetryChange(timeMs: Long) {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.4K bytes
    - Click Count (0)
  8. compat/maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java

            orderedEventSpyDispatcherMock
                    .verify(eventSpyDispatcherMock, times(1))
                    .onEvent(any(ToolchainsBuildingRequest.class));
            orderedEventSpyDispatcherMock
                    .verify(eventSpyDispatcherMock, times(1))
                    .onEvent(any(ToolchainsBuildingResult.class));
        }
    
        @Test
        void resumeFromSelectorIsSuggestedWithoutGroupId() {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 30.9K bytes
    - Click Count (0)
  9. impl/maven-core/src/main/java/org/apache/maven/ReactorReader.java

            ReactorReaderSpy(Lookup lookup) {
                this.lookup = lookup;
            }
    
            @Override
            public void init(Context context) throws Exception {}
    
            @Override
            public void onEvent(Object event) throws Exception {
                if (event instanceof ExecutionEvent executionEvent) {
                    ReactorReader reactorReader = lookup.lookup(ReactorReader.class);
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Dec 15 11:20:38 GMT 2025
    - 24.4K bytes
    - Click Count (0)
  10. impl/maven-core/src/main/java/org/apache/maven/eventspy/internal/EventSpyExecutionListener.java

            dispatcher.onEvent(event);
            delegate.projectDiscoveryStarted(event);
        }
    
        @Override
        public void sessionStarted(ExecutionEvent event) {
            dispatcher.onEvent(event);
            delegate.sessionStarted(event);
        }
    
        @Override
        public void sessionEnded(ExecutionEvent event) {
            dispatcher.onEvent(event);
            delegate.sessionEnded(event);
        }
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 3.9K bytes
    - Click Count (0)
Back to Top