Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 787 for sock (0.03 sec)

  1. src/main/java/jcifs/internal/smb2/lease/DirectoryCacheEntry.java

                }
            } finally {
                lock.writeLock().unlock();
            }
        }
    
        /**
         * Remove a child entry
         *
         * @param childName child file name
         */
        public void removeChild(String childName) {
            lock.writeLock().lock();
            try {
                if (children.remove(childName) != null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

         * always under a lock.
         */
        private static final class SupplantableFuture implements Cancellable {
          private final ReentrantLock lock;
    
          @GuardedBy("lock")
          private Future<@Nullable Void> currentFuture;
    
          SupplantableFuture(ReentrantLock lock, Future<@Nullable Void> currentFuture) {
            this.lock = lock;
            this.currentFuture = currentFuture;
          }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 27.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/NotifyResponseTest.java

     */
    class NotifyResponseTest {
    
        @Mock
        private Configuration mockConfig;
    
        @Mock
        private FileNotifyInformation mockNotifyInfo1;
    
        @Mock
        private FileNotifyInformation mockNotifyInfo2;
    
        @Mock
        private CommonServerMessageBlockRequest mockRequest;
    
        /**
         * Mock implementation of NotifyResponse for testing interface behavior
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/WrappingExecutorServiceTest.java

        MockExecutor mock = new MockExecutor();
        TestExecutor testExecutor = new TestExecutor(mock);
        assertFalse(testExecutor.awaitTermination(10, MILLISECONDS));
        mock.assertLastMethodCalled("awaitTermination");
        assertFalse(testExecutor.isTerminated());
        mock.assertLastMethodCalled("isTerminated");
        assertFalse(testExecutor.isShutdown());
        mock.assertLastMethodCalled("isShutdown");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  5. cmd/local-locker_test.go

    					}
    
    					toUnLock = toUnLock[:0]
    					for k, v := range l.lockMap {
    						for _, lock := range v {
    							toUnLock = append(toUnLock, dsync.LockArgs{Resources: []string{k}, UID: lock.UID, Owner: lock.Owner})
    						}
    					}
    					start = time.Now()
    					for _, lock := range toUnLock {
    						ok, err := l.RUnlock(t.Context(), lock)
    						if err != nil || !ok {
    							t.Fatal(err)
    						}
    					}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/DfsImplTest.java

        @BeforeEach
        void setUp() throws IOException {
            // Mock the CIFSContext and its dependencies
            mockContext = mock(CIFSContext.class);
            mockConfig = mock(Configuration.class);
            mockCredentials = mock(Credentials.class);
            mockTransportPool = mock(SmbTransportPool.class);
    
            // Set up mock behaviors
            when(mockContext.getConfig()).thenReturn(mockConfig);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/http/NtlmServletTest.java

        private TestNtlmServlet ntlmServlet;
    
        @Mock
        private ServletConfig servletConfig;
    
        @Mock
        private HttpServletRequest request;
    
        @Mock
        private HttpServletResponse response;
    
        @Mock
        private HttpSession session;
    
        @Mock
        private CIFSContext cifsContext;
    
        @Mock
        private Configuration configuration;
    
        @Mock
        private jcifs.SmbTransportPool transportPool;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbFileOutputStreamTest.java

    @ExtendWith(MockitoExtension.class)
    class SmbFileOutputStreamTest {
    
        @Mock
        private SmbFile mockFile;
    
        @Mock
        private SmbTreeHandleImpl mockTreeHandle;
    
        @Mock
        private SmbFileHandleImpl mockFileHandle;
    
        @Mock
        private Configuration mockConfig;
    
        @Mock
        private Smb2WriteResponse mockWriteResponse;
    
        private SmbFileOutputStream outputStream;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/persistent/PersistentHandleManager.java

                lock.readLock().unlock();
            }
        }
    
        /**
         * Get handle information by path
         * @param path the file path
         * @return the handle info or null if not found
         */
        public HandleInfo getHandleByPath(String path) {
            lock.readLock().lock();
            try {
                return handles.get(path);
            } finally {
                lock.readLock().unlock();
            }
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 13K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java

    @ExtendWith(MockitoExtension.class)
    @MockitoSettings(strictness = Strictness.LENIENT)
    class SmbResourceLocatorImplTest {
    
        @Mock
        private CIFSContext ctx;
        @Mock
        private Configuration config;
        @Mock
        private Credentials creds;
        @Mock
        private NameServiceClient nsc;
    
        // Minimal URLStreamHandler to allow creating smb:// URLs in tests
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
Back to top