c

nelson.crypto

SafeHolder

final class SafeHolder[V] extends AnyRef

The SafeHolder utility provide safe reuse of objects that could not be shared between thread (not thread-safe) like many java crypto objects, e.g. Cipher.

Source
SafeHolder.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SafeHolder
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SafeHolder()

Value Members

  1. def get: Option[V]
  2. def getOrCreate(f: () ⇒ V): V
  3. def put(value: V): Unit
  4. def remove(): Unit