Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,162 for events (0.36 sec)

  1. android/guava-tests/test/com/google/common/eventbus/StringCatcher.java

    public class StringCatcher {
      private List<String> events = Lists.newArrayList();
    
      @Subscribe
      public void hereHaveAString(@Nullable String string) {
        events.add(string);
      }
    
      public void methodWithoutAnnotation(@Nullable String string) {
        Assert.fail("Event bus must not call methods without @Subscribe!");
      }
    
      public List<String> getEvents() {
        return events;
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 06 12:56:11 GMT 2023
    - 1.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/eventbus/Dispatcher.java

       * all subscribers in the order they are posted.
       *
       * <p>When all subscribers are dispatched to using a <i>direct</i> executor (which dispatches on
       * the same thread that posts the event), this yields a breadth-first dispatch order on each
       * thread. That is, all subscribers to a single event A will be called before any subscribers to
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 7.3K bytes
    - Viewed (0)
  3. okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceRecorder.kt

      }
    
      fun assertEvent(
        id: String?,
        type: String?,
        data: String,
      ) {
        assertThat(nextEvent()).isEqualTo(Event(id, type, data))
      }
    
      fun assertOpen(): EventSource {
        val event = nextEvent() as Open
        return event.eventSource
      }
    
      fun assertClose() {
        nextEvent() as Closed
      }
    
      fun assertFailure(message: String?) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/eventbus/AsyncEventBusTest.java

        // We post the event, but our Executor will not deliver it until instructed.
        bus.post(EVENT);
    
        List<String> events = catcher.getEvents();
        assertTrue("No events should be delivered synchronously.", events.isEmpty());
    
        // Now we find the task in our Executor and explicitly activate it.
        List<Runnable> tasks = executor.getTasks();
        assertEquals("One event dispatch task should be queued.", 1, tasks.size());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.3K bytes
    - Viewed (0)
  5. maven-core/src/test/resources/apiv4-repo/org/apache/maven/wagon/wagon-provider-api/1.0-beta-2/wagon-provider-api-1.0-beta-2.jar

    fireSessionDebug(String); public boolean hasTransferListener(events.TransferListener); public void addTransferListener(events.TransferListener); public void removeTransferListen(events.TransferListener); public void addSessionListener(events.SessionListener); public boolean hasSessionListener(events.SessionListener); public void removeSessionListene(events.SessionListener); protected void fireTransferError(resource.Resource, Exception, int); public events.SessionEventSupport getSessionEventSuppo(); public...
    Archive
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Sun Oct 02 08:41:25 GMT 2022
    - 45.2K bytes
    - Viewed (0)
  6. maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/wagon/wagon-provider-api/1.0-beta-2/wagon-provider-api-1.0-beta-2.jar

    fireSessionDebug(String); public boolean hasTransferListener(events.TransferListener); public void addTransferListener(events.TransferListener); public void removeTransferListen(events.TransferListener); public void addSessionListener(events.SessionListener); public boolean hasSessionListener(events.SessionListener); public void removeSessionListene(events.SessionListener); protected void fireTransferError(resource.Resource, Exception, int); public events.SessionEventSupport getSessionEventSuppo(); public...
    Archive
    - Registered: Sun Mar 31 03:35:09 GMT 2024
    - Last Modified: Tue Oct 16 20:15:40 GMT 2007
    - 45.2K bytes
    - Viewed (0)
  7. docs/features/caching.md

              maxSize = 50L * 1024L * 1024L // 50 MiB
          ))
          .build()
    ```
    
    ## EventListener events 
    
    Cache Events are exposed via the EventListener API.  Typical scenarios are below.
    
    ### Cache Hit
    
    In the ideal scenario the cache can fulfill the request without any conditional call to the network.
    This will skip the normal events such as DNS, connecting to the network, and downloading the response body.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 3.1K bytes
    - Viewed (0)
  8. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild/AbstractBuildScanInfoCollectingService.kt

    import org.gradle.api.services.BuildService
    import org.gradle.api.services.BuildServiceParameters
    import org.gradle.tooling.events.FinishEvent
    import org.gradle.tooling.events.OperationCompletionListener
    import org.gradle.tooling.events.task.TaskFinishEvent
    import org.gradle.tooling.events.task.TaskOperationResult
    import java.io.Serializable
    
    /**
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Thu Aug 11 07:01:27 GMT 2022
    - 2.3K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/eventbus/ReentrantEventsTest.java

        @Subscribe
        public void listenForStrings(String event) {
          eventsReceived.add(event);
          ready = false;
          try {
            bus.post(SECOND);
          } finally {
            ready = true;
          }
        }
    
        @Subscribe
        public void listenForDoubles(Double event) {
          assertTrue("I received an event when I wasn't ready!", ready);
          eventsReceived.add(event);
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue May 15 20:25:06 GMT 2018
    - 2.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/eventbus/EventBusTest.java

        List<DeadEvent> events = catcher.getEvents();
        assertEquals("One dead event should be delivered.", 1, events.size());
        assertEquals("The dead event should wrap the original event.", EVENT, events.get(0).getEvent());
      }
    
      public void testDeadEventPosting() {
        GhostCatcher catcher = new GhostCatcher();
        bus.register(catcher);
    
        bus.post(new DeadEvent(this, EVENT));
    
        List<DeadEvent> events = catcher.getEvents();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.3K bytes
    - Viewed (0)
Back to top