Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 39 for onEvent (0.05 seconds)

  1. 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 Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 3.9K bytes
    - Click Count (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/EventListenerAdapter.kt

        call: Call,
        ioe: IOException,
      ) = onEvent(ResponseFailed(System.nanoTime(), call, ioe))
    
      override fun callEnd(call: Call) = onEvent(CallEnd(System.nanoTime(), call))
    
      override fun callFailed(
        call: Call,
        ioe: IOException,
      ) = onEvent(CallFailed(System.nanoTime(), call, ioe))
    
      override fun canceled(call: Call) = onEvent(Canceled(System.nanoTime(), call))
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  3. impl/maven-core/src/main/java/org/apache/maven/eventspy/internal/EventSpyRepositoryListener.java

            dispatcher.onEvent(event);
            delegate.artifactDeployed(event);
        }
    
        @Override
        public void artifactDeploying(RepositoryEvent event) {
            dispatcher.onEvent(event);
            delegate.artifactDeploying(event);
        }
    
        @Override
        public void artifactDescriptorInvalid(RepositoryEvent event) {
            dispatcher.onEvent(event);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 4.3K bytes
    - Click Count (0)
  4. okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceRecorder.kt

        get().log("[ES] onOpen", Platform.INFO, null)
        events.add(Open(eventSource, response))
        drainCancelQueue(eventSource)
      }
    
      override fun onEvent(
        eventSource: EventSource,
        id: String?,
        type: String?,
        data: String,
      ) {
        get().log("[ES] onEvent", Platform.INFO, null)
        events.add(Event(id, type, data))
        drainCancelQueue(eventSource)
      }
    
      override fun onClosed(eventSource: EventSource) {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Aug 30 11:32:52 GMT 2025
    - 3.2K bytes
    - Click Count (0)
  5. impl/maven-core/src/main/java/org/apache/maven/eventspy/internal/EventSpyDispatcher.java

                    logError("initialize", e, eventSpy);
                }
            }
        }
    
        public void onEvent(Object event) {
            if (eventSpies.isEmpty()) {
                return;
            }
            for (EventSpy eventSpy : eventSpies) {
                try {
                    eventSpy.onEvent(event);
                } catch (Exception | LinkageError e) {
                    logError("notify", e, eventSpy);
                }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 3.3K bytes
    - Click Count (0)
  6. okhttp-testing-support/src/main/kotlin/okhttp3/EventListenerRelay.kt

      val eventRecorder: EventRecorder,
    ) {
      private val eventListenerAdapter =
        EventListenerAdapter()
          .apply {
            listeners += ::onEvent
          }
    
      val eventListener: EventListener
        get() = eventListenerAdapter
    
      var eventCount = 0
    
      private fun onEvent(callEvent: CallEvent) {
        if (eventCount++ == 0) {
          eventRecorder.logEvent(callEvent)
          val next = EventListenerRelay(call, eventRecorder)
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Nov 05 18:28:35 GMT 2025
    - 1.5K bytes
    - Click Count (0)
  7. okhttp-sse/src/main/kotlin/okhttp3/sse/internal/ServerSentEventReader.kt

      private val callback: Callback,
    ) {
      private var lastId: String? = null
    
      interface Callback {
        fun onEvent(
          id: String?,
          type: String?,
          data: String,
        )
    
        fun onRetryChange(timeMs: Long)
      }
    
      /**
       * Process the next event. This will result in a single call to [Callback.onEvent] *unless* the
       * data section was empty. Any number of calls to [Callback.onRetryChange] may occur while
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Oct 03 07:51:20 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  8. impl/maven-core/src/main/java/org/apache/maven/internal/impl/EventSpyImpl.java

     */
    @Named
    @Singleton
    public class EventSpyImpl implements EventSpy {
        @Override
        public void init(Context context) throws Exception {}
    
        @Override
        public void onEvent(Object arg) throws Exception {
            if (arg instanceof ExecutionEvent ee) {
                InternalMavenSession session =
                        InternalMavenSession.from(ee.getSession().getSession());
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Nov 29 20:53:26 GMT 2024
    - 2.2K bytes
    - Click Count (0)
  9. 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 Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Oct 03 07:51:20 GMT 2025
    - 3.2K bytes
    - Click Count (0)
  10. impl/maven-core/src/main/java/org/apache/maven/eventspy/AbstractEventSpy.java

     * @since 3.0.2
     */
    public abstract class AbstractEventSpy implements EventSpy {
    
        @Override
        public void init(Context context) throws Exception {}
    
        @Override
        public void onEvent(Object event) throws Exception {}
    
        @Override
        public void close() throws Exception {}
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 1.2K bytes
    - Click Count (0)
Back to Top