Pool
skunk.util.Pool
object Pool
Attributes
- Source
- Pool.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Pool.type
Members list
Type members
Classlikes
final case class ResourceLeak(expected: Int, actual: Int, deferrals: Int) extends SkunkException
Class of exceptions raised when a resource leak is detected on pool finalization.
Class of exceptions raised when a resource leak is detected on pool finalization.
Attributes
- Source
- Pool.scala
- Supertypes
-
trait Producttrait Equalsclass SkunkExceptiontrait Fieldsclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
object ShutdownException extends SkunkException
Exception raised to deferrals that remain during pool finalization.
Exception raised to deferrals that remain during pool finalization. This indicates a programming error, typically misuse of fibers.
Attributes
- Source
- Pool.scala
- Supertypes
-
class SkunkExceptiontrait Fieldsclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
ShutdownException.type
Value members
Concrete methods
Attributes
- Source
- Pool.scala
A pooled resource (which is itself a managed resource).
A pooled resource (which is itself a managed resource).
Value parameters
- recycler
-
a cleanup/health-check to be done before elements are returned to the pool; yielding false here means the element should be freed and removed from the pool.
- rsrc
-
the underlying resource to be pooled
- size
-
maximum size of the pool (must be positive)
Attributes
- Source
- Pool.scala
In this article