Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for SmbWatchHandle (0.07 sec)

  1. src/main/java/jcifs/SmbWatchHandle.java

    package jcifs;
    
    import java.util.List;
    import java.util.concurrent.Callable;
    
    /**
     * Handle for receiving change notifications from an SMB server
     *
     *
     * @author mbechler
     *
     */
    public interface SmbWatchHandle extends AutoCloseable, Callable<List<FileNotifyInformation>> {
    
        /**
         * Get the next set of changes
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbWatchHandleImpl.java

            }
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbWatchHandle#call()
         */
        @Override
        public List<FileNotifyInformation> call() throws CIFSException {
            return watch();
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbWatchHandle#close()
         */
        @Override
        public void close() throws CIFSException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/SmbWatchHandleTest.java

        @Test
        void testAutoCloseable() throws CIFSException {
            // Create a mock that tracks close calls
            SmbWatchHandle autoCloseableHandle = mock(SmbWatchHandle.class);
            when(autoCloseableHandle.watch()).thenReturn(mockNotifications);
    
            // Use try-with-resources
            try (SmbWatchHandle handle = autoCloseableHandle) {
                List<FileNotifyInformation> result = handle.watch();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/SmbResourceTest.java

    class SmbResourceTest {
    
        @Mock
        private SmbResource mockResource;
    
        @Mock
        private SmbResourceLocator mockLocator;
    
        @Mock
        private CIFSContext mockContext;
    
        @Mock
        private SmbWatchHandle mockWatchHandle;
    
        @Mock
        private SmbRandomAccess mockRandomAccess;
    
        @Mock
        private InputStream mockInputStream;
    
        @Mock
        private OutputStream mockOutputStream;
    
        @Mock
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
  5. src/main/java/jcifs/SmbResource.java

         *            whether to also watch subdirectories
         * @return watch context, needs to be closed when finished
         * @throws CIFSException if an error occurs accessing the resource
         */
        SmbWatchHandle watch(int filter, boolean recursive) throws CIFSException;
    
        /**
         * Return the resolved owner group SID for this file or directory
         *
         * @return the owner group SID, <code>null</code> if not present
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 28K bytes
    - Viewed (1)
  6. src/main/java/jcifs/smb/SmbFile.java

    import jcifs.ResourceFilter;
    import jcifs.ResourceNameFilter;
    import jcifs.SmbConstants;
    import jcifs.SmbFileHandle;
    import jcifs.SmbResource;
    import jcifs.SmbResourceLocator;
    import jcifs.SmbTreeHandle;
    import jcifs.SmbWatchHandle;
    import jcifs.context.SingletonContext;
    import jcifs.dcerpc.DcerpcHandle;
    import jcifs.dcerpc.msrpc.MsrpcShareGetInfo;
    import jcifs.internal.AllocInfo;
    import jcifs.internal.SmbBasicFileInfo;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 103.2K bytes
    - Viewed (0)
Back to top