Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 21 for releases (0.24 sec)

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

         * @see java.lang.AutoCloseable#close()
         */
        @Override
        public void close () {
            release();
        }
    
    
        /**
         * 
         */
        public void release () {
            long usage = this.usageCount.decrementAndGet();
            if ( log.isTraceEnabled() ) {
                log.trace("Release transport " + usage + " " + this);
            }
    
            if ( usage == 0 ) {
    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/SmbTreeHandleImpl.java

        public synchronized void close () {
            release();
        }
    
    
        /**
         * @return tree handle with increased usage count
         */
        public SmbTreeHandleImpl acquire () {
            if ( this.usageCount.incrementAndGet() == 1 ) {
                this.treeConnection.acquire();
            }
            return this;
        }
    
    
        @Override
        public void release () {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 8.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbTreeConnection.java

                    if ( wasAcquired ) {
                        // release
                        old.release(true);
                    }
                }
                if ( this.delegate != null && this.delegateAcquired ) {
                    log.debug("Releasing delegate");
                    this.delegateAcquired = false;
                    this.delegate.release();
                }
            }
        }
    
    
        /**
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Tue Jul 07 10:50:16 GMT 2020
    - 31K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbSessionImpl.java

                log.warn("Session was not properly released");
            }
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see java.lang.AutoCloseable#close()
         */
        @Override
        public void close () {
            release();
        }
    
    
        /**
         * 
         */
        public void release () {
            long usage = this.usageCount.decrementAndGet();
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Nov 14 17:41:04 GMT 2021
    - 49K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbFileHandleImpl.java

                if ( t != null ) {
                    // release tree usage
                    t.release();
                }
                this.tree = null;
            }
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbFileHandle#close()
         */
        @Override
        public void close () throws CIFSException {
            release();
        }
    
    
        /**
         * {@inheritDoc}
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 8.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/SmbResource.java

         * @return input stream, needs to be closed when finished
         * @throws CIFSException
         */
        InputStream openInputStream () throws CIFSException;
    
    
        /**
         * Close/release the file
         * 
         * This releases all resources that this file holds. If not using strict mode this is currently a no-op.
         *
         * @see java.lang.AutoCloseable#close()
         */
        @Override
        void close ();
    
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Dec 20 14:09:34 GMT 2020
    - 26K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/DirFileEntryEnumIteratorBase.java

                this.closed = true;
                try {
                    doCloseInternal();
                }
                finally {
                    this.next = null;
                    this.treeHandle.release();
                }
            }
        }
    
    
        /**
         * 
         */
        protected abstract void doCloseInternal () throws CIFSException;
    
    
        /**
         * {@inheritDoc}
         *
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 5.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbTransportImpl.java

                    }
    
                    int permits = r.getInitialCredits();
                    if ( permits > 0 ) {
                        this.credits.release(permits);
                    }
                    Arrays.fill(this.sbuf, (byte) 0);
                    return new SmbNegotiation(
                        new Smb2NegotiateRequest(
                            getContext().getConfig(),
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Wed Jan 18 23:47:00 GMT 2023
    - 67K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbRandomAccessFile.java

            // ensure file is open
            if ( this.handle == null || !this.handle.isValid() ) {
                // one extra acquire to keep this open till the stream is released
                this.handle = this.file.openUnshared(this.openFlags, this.access, this.sharing, SmbConstants.ATTR_NORMAL, this.options).acquire();
                return this.handle;
            }
            return this.handle.acquire();
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Wed Jan 08 12:01:33 GMT 2020
    - 18.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/Configuration.java

         * 
         * 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
         */
        boolean isStrictResourceLifecycle ();
    
    
        /**
    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