Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for ArrayDeque (0.26 sec)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingCookieJar.kt

     */
    package okhttp3
    
    import assertk.assertThat
    import assertk.assertions.containsExactly
    import java.util.ArrayDeque
    import java.util.Deque
    
    class RecordingCookieJar : CookieJar {
      private val requestCookies: Deque<List<Cookie>> = ArrayDeque()
      private val responseCookies: Deque<List<Cookie>> = ArrayDeque()
    
      fun enqueueRequestCookies(vararg cookies: Cookie) {
        requestCookies.add(cookies.toList())
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  2. okhttp-sse/src/test/java/okhttp3/sse/internal/ServerSentEventIteratorTest.kt

    import assertk.assertions.isEqualTo
    import java.util.ArrayDeque
    import java.util.Deque
    import okio.Buffer
    import org.junit.jupiter.api.AfterEach
    import org.junit.jupiter.api.Test
    
    class ServerSentEventIteratorTest {
      /** Either [Event] or [Long] items for events and retry changes, respectively.  */
      private val callbacks: Deque<Any> = ArrayDeque()
    
      @AfterEach
      fun after() {
        assertThat(callbacks).isEmpty()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

     */
    package okhttp3.internal.http2
    
    import java.io.EOFException
    import java.io.IOException
    import java.io.InterruptedIOException
    import java.net.SocketTimeoutException
    import java.util.ArrayDeque
    import java.util.concurrent.locks.Condition
    import java.util.concurrent.locks.ReentrantLock
    import okhttp3.Headers
    import okhttp3.internal.EMPTY_HEADERS
    import okhttp3.internal.assertNotHeld
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 23.2K bytes
    - Viewed (1)
  4. okhttp/src/main/kotlin/okhttp3/Dispatcher.kt

      private val readyAsyncCalls = ArrayDeque<AsyncCall>()
    
      /** Running asynchronous calls. Includes canceled calls that haven't finished yet. */
      private val runningAsyncCalls = ArrayDeque<AsyncCall>()
    
      /** Running synchronous calls. Includes canceled calls that haven't finished yet. */
      private val runningSyncCalls = ArrayDeque<RealCall>()
    
      constructor(executorService: ExecutorService) : this() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 9K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/tls/BasicCertificateChainCleaner.kt

     * limitations under the License.
     */
    package okhttp3.internal.tls
    
    import java.security.GeneralSecurityException
    import java.security.cert.Certificate
    import java.security.cert.X509Certificate
    import java.util.ArrayDeque
    import java.util.Deque
    import javax.net.ssl.SSLPeerUnverifiedException
    
    /**
     * A certificate chain cleaner that uses a set of trusted root certificates to build the trusted
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt

      private var streams: Streams? = null
    
      /** Outgoing pongs in the order they should be written. */
      private val pongQueue = ArrayDeque<ByteString>()
    
      /** Outgoing messages and close frames in the order they should be written. */
      private val messageAndCloseQueue = ArrayDeque<Any>()
    
      /** The total size in bytes of enqueued but not yet transmitted messages. */
      private var queueSize = 0L
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/connection/RoutePlanner.kt

     * thread executing the call.
     */
    interface RoutePlanner {
      val address: Address
    
      /** Follow-ups for failed plans and plans that lost a race. */
      val deferredPlans: ArrayDeque<Plan>
    
      fun isCanceled(): Boolean
    
      /** Returns a plan to attempt. */
      @Throws(IOException::class)
      fun plan(): Plan
    
      /**
       * Returns true if there's more route plans to try.
       *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/FakeRoutePlanner.kt

      var autoGeneratePlans = false
      var defaultConnectionIdleAtNanos = Long.MAX_VALUE
      private var nextPlanId = 0
      private var nextPlanIndex = 0
      val plans = mutableListOf<FakePlan>()
    
      override val deferredPlans = ArrayDeque<RoutePlanner.Plan>()
    
      override val address = factory.newAddress("example.com")
    
      fun addPlan(): FakePlan {
        return FakePlan(nextPlanId++).also {
          plans += it
        }
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 24 04:40:49 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  9. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

      /** Guarded by [taskRunner]. */
      var nanoTime = 0L
        private set
    
      /** Backlog of tasks to run. Only one task runs at a time. Guarded by [TaskRunner.lock]. */
      private val serialTaskQueue = ArrayDeque<SerialTask>()
    
      /** The task that's currently executing. Guarded by [TaskRunner.lock]. */
      private var currentTask: SerialTask = TestThreadSerialTask
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 12.6K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt

    ) : RoutePlanner {
      private var routeSelection: RouteSelector.Selection? = null
      private var routeSelector: RouteSelector? = null
      private var nextRouteToTry: Route? = null
    
      override val deferredPlans = ArrayDeque<Plan>()
    
      override fun isCanceled(): Boolean = connectionUser.isCanceled()
    
      @Throws(IOException::class)
      override fun plan(): Plan {
        val reuseCallConnection = planReuseCallConnection()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 12K bytes
    - Viewed (0)
Back to top