Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 74 for Bruns (0.26 sec)

  1. samples/unixdomainsockets/src/main/java/okhttp3/unixdomainsockets/ClientAndServer.java

     * cannot do TLS over domain sockets.
     */
    public class ClientAndServer {
      public void run() throws Exception {
        File socketFile = new File("/tmp/ClientAndServer.sock");
        socketFile.delete(); // Clean up from previous runs.
    
        MockWebServer server = new MockWebServer();
        server.setServerSocketFactory(new UnixDomainServerSocketFactory(socketFile));
        server.setProtocols(Collections.singletonList(Protocol.H2_PRIOR_KNOWLEDGE));
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Dec 24 03:46:30 GMT 2018
    - 2.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

       *             complete, the listener runs immediately in that thread.
       *         <li>When a thread attaches a listener to a {@code ListenableFuture} that's
       *             incomplete and the {@code ListenableFuture} later completes normally, the
       *             listener runs in the thread that completes the {@code ListenableFuture}.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 41.8K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

    import java.util.Set;
    import javax.annotation.CheckForNull;
    import junit.framework.Assert;
    import junit.framework.AssertionFailedError;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Tester that runs automated sanity tests for any given class. A typical use case is to test static
     * factory classes like:
     *
     * <pre>
     * interface Book {...}
     * public class Books {
     *   public static Book hardcover(String title) {...}
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/SequentialExecutor.java

      @LazyInit
      @GuardedBy("queue")
      private WorkerRunningState workerRunningState = IDLE;
    
      /**
       * This counter prevents an ABA issue where a thread may successfully schedule the worker, the
       * worker runs and exhausts the queue, another thread enqueues a task and fails to schedule the
       * worker, and then the first thread's call to delegate.execute() returns. Without this counter,
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/AggregateFuture.java

           * lets all futures share the same listener.
           *
           * We store `localFutures` inside the listener because `this.futures` might be nulled out by
           * the time the listener runs for the final future -- at which point we need to check all
           * inputs for exceptions *if* we're collecting values. If we're not, then the listener doesn't
           * need access to the futures again, so we can just pass `null`.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  6. samples/slack/src/main/java/okhttp3/slack/OAuthSessionFactory.java

    import okhttp3.mockwebserver.Dispatcher;
    import okhttp3.mockwebserver.MockResponse;
    import okhttp3.mockwebserver.MockWebServer;
    import okhttp3.mockwebserver.RecordedRequest;
    import okio.ByteString;
    
    /**
     * Runs a MockWebServer on localhost and uses it as the backend to receive an OAuth session.
     *
     * <p>Clients should call {@link #start}, {@link #newAuthorizeUrl} and {@link #close} in that order.
     * Clients may request multiple sessions.
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Aug 12 07:26:27 GMT 2021
    - 3.8K bytes
    - Viewed (0)
  7. guava-tests/benchmark/com/google/common/base/AsciiBenchmark.java

      @Param boolean noWorkToDo;
    
      Random random;
      String testString;
    
      @BeforeExperiment
      void setUp() {
        random = new Random(0xdeadbeef); // fix the seed so results are comparable across runs
    
        int nonAlpha = size / nonAlphaRatio;
        int alpha = size - nonAlpha;
    
        List<Character> chars = Lists.newArrayListWithCapacity(size);
        for (int i = 0; i < alpha; i++) {
          chars.add(randomAlpha());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.8K bytes
    - Viewed (0)
  8. guava-testlib/test/com/google/common/testing/FakeTickerTest.java

                long unused = ticker.read();
                return null;
              }
            });
    
        assertEquals(incrementByNanos * numberOfThreads, ticker.read());
      }
    
      /** Runs {@code callable} concurrently {@code numberOfThreads} times. */
      @GwtIncompatible // concurrency
      private void runConcurrentTest(int numberOfThreads, final Callable<@Nullable Void> callable)
          throws Exception {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 14:40:46 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  9. maven-core/src/main/java/org/apache/maven/lifecycle/MavenExecutionPlan.java

    import org.apache.maven.model.Plugin;
    import org.apache.maven.plugin.MojoExecution;
    import org.apache.maven.plugin.descriptor.MojoDescriptor;
    
    // TODO lifecycles being executed
    // TODO what runs in each phase
    // TODO plugins that need downloading
    // TODO project dependencies that need downloading
    // TODO unfortunately the plugins need to be downloaded in order to get the plugin.xml file. need to externalize this
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Jan 10 12:55:54 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/HashBasedTable.java

     *
     * <p>Lookups by row key are often faster than lookups by column key, because the data is stored in
     * a {@code Map<R, Map<C, V>>}. A method call like {@code column(columnKey).get(rowKey)} still runs
     * quickly, since the row key is provided. However, {@code column(columnKey).size()} takes longer,
     * since an iteration across all row keys occurs.
     *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Jan 24 17:47:51 GMT 2022
    - 4K bytes
    - Viewed (0)
Back to top