connection-pool-0.1.3: Connection pool built on top of resource-pool and streaming-commons.

Copyright(c) 2015, Peter Trško
LicenseBSD3
Maintainerpeter.trsko@gmail.com
Stabilityunstable (internal module)
PortabilityDeriveDataTypeable, NamedFieldPuns, NoImplicitPrelude, RecordWildCards
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.ConnectionPool.Internal.HandlerParams

Description

Internal packages are here to provide access to internal definitions for library writers, but they should not be used in application code.

Preferably use qualified import, e.g.:

import qualified Data.ConnectionPool.Internal.HandlerParams as Internal

This module doesn't depend on streaming-commons and other non-HaskellPlatform packages with notable exception of resource-pool. Another notable thing is that this package is not OS specific. Please, bear this in mind when doing modifications.

Synopsis

Documentation

data HandlerParams Source

Constructors

HandlerParams 

Fields

_readBufferSize :: !Int

See readBufferSize for details.

Instances

Data HandlerParams 
Show HandlerParams 
Generic HandlerParams 
Default HandlerParams
readBufferSize = 32768

Package streaming-commons < 0.1.13 used value 4096, streaming-commons == 0.1.13 used 32768, which is 8 * 4096, based on: issue #22

Typeable * HandlerParams 
type Rep HandlerParams 

readBufferSize :: Functor f => (Int -> f Int) -> HandlerParams -> f HandlerParams Source

Lens for accessing read buffer size that handler should use when reading data from connection.