Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getUsageCount (0.19 sec)

  1. src/main/java/jcifs/util/transport/Transport.java

                log.warn("Session was not properly released");
            }
        }
    
    
        /**
         * @return the number of known usages
         */
        protected long getUsageCount () {
            return this.usageCount.get();
        }
    
    
        protected abstract long makeKey ( Request request ) throws IOException;
    
    
        protected abstract Long peekKey () throws IOException;
    
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Nov 01 18:12:21 GMT 2020
    - 24.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbTransportImpl.java

        protected synchronized boolean doDisconnect ( boolean hard, boolean inUse ) throws IOException {
            ListIterator<SmbSessionImpl> iter = this.sessions.listIterator();
            boolean wasInUse = false;
            long l = getUsageCount();
            if ( ( inUse && l != 1 ) || ( !inUse && l > 0 ) ) {
                log.warn("Disconnecting transport while still in use " + this + ": " + this.sessions);
                wasInUse = true;
            }
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Wed Jan 18 23:47:00 GMT 2023
    - 67K bytes
    - Viewed (0)
Back to top