Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 91 - 100 of 238 for poolId (0.18 seconds)

  1. docs/tr/docs/advanced/events.md

    Bu yaklaşım, tüm uygulama boyunca kullanacağınız ve request’ler arasında **paylaşılan** **resource**’ları kurmak ve/veya sonrasında bunları **temizlemek** için çok faydalıdır. Örneğin bir veritabanı connection pool’u ya da paylaşılan bir machine learning modelini yüklemek gibi.
    
    ## Kullanım Senaryosu { #use-case }
    
    Önce bir **kullanım senaryosu** örneğiyle başlayalım, sonra bunu bununla nasıl çözeceğimize bakalım.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 8.3K bytes
    - Click Count (0)
  2. cmd/peer-rest-server.go

    	objAPI := newObjectLayerFn()
    	if objAPI == nil {
    		return np, grid.NewRemoteErr(errServerNotInitialized)
    	}
    
    	pools, ok := objAPI.(*erasureServerPools)
    	if !ok {
    		return np, grid.NewRemoteErr(errors.New("not a pooled setup"))
    	}
    
    	pools.StopRebalance()
    	return np, nerr
    }
    
    func (s *peerRESTServer) LoadRebalanceMetaHandler(mss *grid.MSS) (np grid.NoPayload, nerr *grid.RemoteErr) {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 53.6K bytes
    - Click Count (0)
  3. docs/zh-hant/docs/tutorial/request-files.md

    將檔案參數型別設為 `UploadFile`:
    
    {* ../../docs_src/request_files/tutorial001_an_py310.py hl[14] *}
    
    使用 `UploadFile` 相較於 `bytes` 有數個優點:
    
    * 你不必在參數的預設值使用 `File()`。
    * 它使用「spooled」檔案:
        * 檔案在記憶體中保存到某個大小上限,超過上限後會存到磁碟。
    * 因此適合處理大型檔案(例如圖片、影片、大型二進位檔等),而不會耗盡記憶體。
    * 你可以取得上傳檔案的中繼資料。
    * 它提供一個[file-like](https://docs.python.org/3/glossary.html#term-file-like-object) 的 `async` 介面。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 6.6K bytes
    - Click Count (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

        connections.add(connection)
    //    connection.queueEvent { connectionListener.connectEnd(connection) }
        scheduleCloser()
      }
    
      /**
       * Notify this pool that [connection] has become idle. Returns true if the connection has been
       * removed from the pool and should be closed.
       */
      fun connectionBecameIdle(connection: RealConnection): Boolean {
        connection.assertLockHeld()
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 11.1K bytes
    - Click Count (0)
  5. src/test/java/jcifs/context/BaseContextTest.java

            }
        }
    
        @Test
        @DisplayName("getTransportPool should return initialized transport pool")
        void testGetTransportPool() {
            // When
            SmbTransportPool transportPool = context.getTransportPool();
    
            // Then
            assertNotNull(transportPool, "Transport pool should not be null");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 15.1K bytes
    - Click Count (0)
  6. src/archive/zip/register.go

    // simultaneously, but each returned reader will be used only by
    // one goroutine at a time.
    type Decompressor func(r io.Reader) io.ReadCloser
    
    var flateWriterPool sync.Pool
    
    func newFlateWriter(w io.Writer) io.WriteCloser {
    	fw, ok := flateWriterPool.Get().(*flate.Writer)
    	if ok {
    		fw.Reset(w)
    	} else {
    		fw, _ = flate.NewWriter(w, 5)
    	}
    	return &pooledFlateWriter{fw: fw}
    }
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 3.7K bytes
    - Click Count (0)
  7. src/main/java/jcifs/SmbTransportPool.java

                boolean exclusive, boolean forceSigning);
    
        /**
         * Removes a transport from the pool.
         *
         * @param trans the transport to remove
         */
        void removeTransport(SmbTransport trans);
    
        /**
         * Closes the pool and all connections in it
         *
         * @return whether any transport was still in use
         *
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 7.5K bytes
    - Click Count (0)
  8. docs/fr/docs/tutorial/request-files.md

    Utiliser `UploadFile` présente plusieurs avantages par rapport à `bytes` :
    
    - Vous n'avez pas besoin d'utiliser `File()` comme valeur par défaut du paramètre.
    - Il utilise un fichier « spooled » :
        - Un fichier stocké en mémoire jusqu'à une taille maximale, puis, au-delà de cette limite, stocké sur le disque.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 8.2K bytes
    - Click Count (0)
  9. docs/es/docs/tutorial/request-files.md

    {* ../../docs_src/request_files/tutorial001_an_py310.py hl[14] *}
    
    Usar `UploadFile` tiene varias ventajas sobre `bytes`:
    
    * No tienes que usar `File()` en el valor por defecto del parámetro.
    * Usa un archivo "spooled":
        * Un archivo almacenado en memoria hasta un límite de tamaño máximo, y después de superar este límite, se almacenará en el disco.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 7.6K bytes
    - Click Count (0)
  10. cmd/naughty-disk_test.go

    	defer d.mu.Unlock()
    	d.callNR++
    	if err, ok := d.errors[d.callNR]; ok {
    		return err
    	}
    	if d.defaultErr != nil {
    		return d.defaultErr
    	}
    	return nil
    }
    
    func (d *naughtyDisk) GetDiskLoc() (poolIdx, setIdx, diskIdx int) {
    	return -1, -1, -1
    }
    
    func (d *naughtyDisk) GetDiskID() (string, error) {
    	return d.disk.GetDiskID()
    }
    
    func (d *naughtyDisk) SetDiskID(id string) {
    	d.disk.SetDiskID(id)
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Apr 25 05:41:04 GMT 2025
    - 10.1K bytes
    - Click Count (0)
Back to Top