Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for delay (0.17 sec)

  1. src/main/java/jcifs/smb1/smb1/TestLocking.java

                long delay;
    
                do {
                    delay = 2L;
    
                    synchronized (t) {
                        long expire = t.ltime + t.delay;
                        long ctime = System.currentTimeMillis();
    
                        if (expire > ctime)
                            delay = expire - ctime;
                    }
    
    if (delay > 2)
    System.out.println("delay=" + delay);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 3.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbTreeConnection.java

                if ( retries >= maxRetries ) {
                    break;
                }
    
                try {
                    if ( retries != 1 ) {
                        // backoff, but don't delay the first attempt as there are various reasons that can be fixed
                        // immediately
                        Thread.sleep(500 + RAND.nextInt(1000));
                    }
                }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Tue Jul 07 10:50:16 GMT 2020
    - 31K bytes
    - Viewed (0)
  3. src/main/java/jcifs/Configuration.java

         * references (currently executing code, file descriptors).
         * 
         * Depending on the usage scenario, this may have some benefit as there won't be any delays for restablishing these
         * resources, however comes at the cost of having to properly release all SmbFile instances you no longer need.
         * 
         * @return whether to use strict resource lifecycle
         */
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:06:39 GMT 2023
    - 18K bytes
    - Viewed (0)
Back to top