- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 89 for Open (0.02 sec)
-
src/test/java/jcifs/util/SmbCircuitBreakerTest.java
} @Test public void testCircuitResetsAfterTimeout() throws Exception { // Open the circuit circuitBreaker.trip(); assertEquals(State.OPEN, circuitBreaker.getState(), "Circuit should be OPEN"); // Wait for reset timeout Thread.sleep(1100);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 23.2K bytes - Viewed (0) -
src/main/java/jcifs/util/SimpleCircuitBreaker.java
* * @param name the circuit breaker name * @param failureThreshold number of consecutive failures to open circuit * @param successThreshold number of successes in half-open to close circuit * @param timeoutMillis timeout before attempting to close open circuit */ public SimpleCircuitBreaker(String name, int failureThreshold, int successThreshold, long timeoutMillis) { this.name = name;Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 11.3K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbPipeHandleImpl.java
* * @see jcifs.SmbPipeHandle#isStale() */ @Override public boolean isStale() { return !this.open || this.handle != null && !this.handle.isValid(); } @Override public synchronized SmbFileHandleImpl ensureOpen() throws CIFSException { if (!this.open) { throw new SmbException("Pipe handle already closed"); } if (!isOpen()) {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 10.2K bytes - Viewed (0) -
src/test/java/jcifs/util/SimpleCircuitBreakerTest.java
// Expected } assertEquals(SimpleCircuitBreaker.State.OPEN, circuitBreaker.getState()); } @Test @DisplayName("Test reset functionality") void testReset() { // Open the circuit circuitBreaker.tripBreaker(); assertEquals(SimpleCircuitBreaker.State.OPEN, circuitBreaker.getState()); // Reset circuitBreaker.reset();Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 10.6K bytes - Viewed (0) -
src/main/java/jcifs/util/SmbCircuitBreaker.java
if (currentState == State.OPEN && shouldAttemptReset()) { log.debug("[{}] Attempting to reset circuit breaker from OPEN to HALF_OPEN", name); transitionTo(State.HALF_OPEN); currentState = State.HALF_OPEN; } // Block if circuit is open if (currentState == State.OPEN) { totalRequests.incrementAndGet();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 33.4K bytes - Viewed (0) -
docs/en/docs/advanced/events.md
{* ../../docs_src/events/tutorial003.py hl[1,13] *} A **context manager** in Python is something that you can use in a `with` statement, for example, `open()` can be used as a context manager: ```Python with open("file.txt") as file: file.read() ``` In recent versions of Python, there's also an **async context manager**. You would use it with `async with`: ```PythonRegistered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 7.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/create/Smb2CreateRequest.java
public static final int FILE_OPEN_REQUIRING_OPLOCK = 0x10000; /** * Any open of this file cannot be exclusive */ public static final int FILE_DISALLOW_EXCLUSIVE = 0x20000; /** * Reserve an opportunistic lock filter on the open */ public static final int FILE_RESERVE_OPFILTER = 0x100000; /** * Open a reparse point and bypass normal reparse point processing */Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 22.9K bytes - Viewed (0) -
src/main/java/jcifs/SmbConstants.java
*/ int TYPE_COMM = 0x40; /* open flags */ /** * Open for reading only. */ int O_RDONLY = 0x01; /** * Open for writing only. */ int O_WRONLY = 0x02; /** * Open for reading and writing. */ int O_RDWR = 0x03; /** * Open in append mode. */ int O_APPEND = 0x04;Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 24 00:49:49 UTC 2025 - 12.8K bytes - Viewed (0) -
okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceRecorder.kt
fun enqueueCancel() { cancel = true } override fun onOpen( eventSource: EventSource, response: Response, ) { 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, ) {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 30 11:32:52 UTC 2025 - 3.2K bytes - Viewed (0) -
okhttp-sse/src/main/kotlin/okhttp3/sse/EventSourceListener.kt
* events. */ open fun onOpen( eventSource: EventSource, response: Response, ) { } /** * Invoked when a new event has been sent to the client. * * @param id The `id` line of the event, might be null. * @param type The `event` line of the event, might be null. * @param data The `data` line of the event. */ open fun onEvent( eventSource: EventSource,
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 30 11:47:47 UTC 2025 - 1.7K bytes - Viewed (0)