Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 438 for state (0.02 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

        state = STATE_WRITING_REQUEST_BODY
        return ChunkedSink()
      }
    
      private fun newKnownLengthSink(): Sink {
        check(state == STATE_OPEN_REQUEST_BODY) { "state: $state" }
        state = STATE_WRITING_REQUEST_BODY
        return KnownLengthSink()
      }
    
      private fun newFixedLengthSource(
        url: HttpUrl,
        length: Long,
      ): Source {
        check(state == STATE_OPEN_RESPONSE_BODY) { "state: $state" }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 17.5K bytes
    - Viewed (7)
  2. src/main/java/jcifs/internal/smb2/lease/Smb2LeaseState.java

            // Utility class
        }
    
        /**
         * Check if state has read caching
         * @param state lease state
         * @return true if read caching is enabled
         */
        public static boolean hasReadCaching(int state) {
            return (state & SMB2_LEASE_READ_CACHING) != 0;
        }
    
        /**
         * Check if state has handle caching
         * @param state lease state
         * @return true if handle caching is enabled
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/multichannel/ChannelInfo.java

        }
    
        /**
         * Get current channel state
         *
         * @return channel state
         */
        public ChannelState getState() {
            return state;
        }
    
        /**
         * Set channel state
         *
         * @param state new state
         */
        public void setState(ChannelState state) {
            this.state = state;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/util/SimpleCircuitBreaker.java

            totalFailures.incrementAndGet();
            lastFailureTime.set(System.currentTimeMillis());
    
            State current = state.get();
    
            if (current == State.HALF_OPEN) {
                // Single failure in half-open state reopens the circuit
                if (state.compareAndSet(State.HALF_OPEN, State.OPEN)) {
                    stateChangeTime.set(System.currentTimeMillis());
                    consecutiveFailures.set(1);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/util/SmbCircuitBreakerTest.java

                // NOTE: Implementation behavior - custom predicate may not prevent all state changes
                // Skipping assertions that assume non-critical errors don't affect circuit state
                // as the actual implementation may handle this differently
    
                // Reset to ensure clean state for critical error test
                if (customCb.getState() != State.CLOSED) {
                    customCb.reset();
                }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseState.java

        /**
         * Check if directory can cache enumeration results
         * @param state lease state
         * @return true if directory enumeration can be cached
         */
        public static boolean canCacheEnumeration(int state) {
            return Smb2LeaseState.hasReadCaching(state);
        }
    
        /**
         * Check if directory can keep handles open
         * @param state lease state
         * @return true if directory handles can be kept open
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/util/SmbCircuitBreaker.java

            State currentState = state.get();
    
            if (currentState == State.OPEN && shouldAttemptReset()) {
                transitionTo(State.HALF_OPEN);
                currentState = State.HALF_OPEN;
            }
    
            if (currentState == State.OPEN) {
                throw new CircuitOpenException("Circuit breaker '" + name + "' is open");
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/AggregateFutureState.java

            AggregateFutureState<?> state, @Nullable Set<Throwable> expect, Set<Throwable> update) {
          synchronized (state) {
            if (state.seenExceptionsField == expect) {
              state.seenExceptionsField = update;
            }
          }
        }
    
        @Override
        int decrementAndGetRemainingCount(AggregateFutureState<?> state) {
          synchronized (state) {
            return --state.remainingField;
          }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/util/transport/TransportTest.java

                for (int state : disconnectedStates) {
                    transport.setState(state);
                    assertTrue(transport.isDisconnected(), "State " + state + " should be disconnected");
                }
    
                for (int state : connectedStates) {
                    transport.setState(state);
                    assertFalse(transport.isDisconnected(), "State " + state + " should not be disconnected");
                }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java

        //            (__)\       )\/\
        //                ||----w |
        //                ||     ||
        Runnable state = get();
        Blocker blocker = null;
        while (state instanceof Blocker || state == PARKED) {
          if (state instanceof Blocker) {
            blocker = (Blocker) state;
          }
          spinCount++;
          if (spinCount > MAX_BUSY_WAIT_SPINS) {
            /*
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 10K bytes
    - Viewed (0)
Back to top