package util
- Alphabetic
- By Inheritance
- util
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- class LocalMessenger extends Messenger
- trait Messenger extends AnyRef
- class RemoteMessenger extends Messenger
- case class SimpleSocketAddress(hostName: String, port: Int) extends Product with Serializable
Holds a hostname and a port
Holds a hostname and a port
No name resolution.
- case class Uri(uri: String) extends Product with Serializable
Value Members
- def addMaps[K, V](a: Map[K, V], b: Map[K, V])(fun: (V, V) => V): Map[K, V]
Merge maps with key collision
Merge maps with key collision
- fun
Handles key collision
- def addMaps[K, V](a: Map[K, V], b: Map[K, V])(fun: (V, V) => V): Map[K, V]
Merge maps with key collision
Merge maps with key collision
- fun
Handles key collision
- def base64(s: String): Array[Byte]
- def base64(b: Array[Byte]): String
- def chooseNetworkPort(implicit config: ConfigValuesForHostConfiguration): Int
- def loadConfig(config: Option[Config]): Config
- def openFileInputStream[T](fileName: File)(func: (BufferedInputStream) => T): T
Opens a buffered java.io.BufferedInputStream on the file.
Opens a buffered java.io.BufferedInputStream on the file. Closes it after the block is executed.
- def readStreamAndClose(is: InputStream): Iterator[Byte] { ... /* 2 definitions in type refinement */ }
Returns an iterator on the InputStream's data.
Returns an iterator on the InputStream's data.
Closes the stream when read through.
- def rethrow[T](messageOnError: => String)(block: => T): T
- def rethrow[T](messageOnError: => String, exceptionFactory: (=> String, Throwable) => Throwable)(block: => T): T
- def retry[T](n: Int)(fn: => T): Try[T]
Retry the given block n times.
Retry the given block n times.
- Annotations
- @tailrec()
- def retryIO[A](tag: String)(f: => IO[A], c: Int)(implicit log: Logger): IO[A]
- def rightOrThrow[A, E](e: Either[E, A]): A
- def stackTraceAsString(t: Any): String
- def useResource[A <: AnyRef { def close(): Unit }, B](param: A)(f: (A) => B): B
Returns the result of the block, and closes the resource.
Returns the result of the block, and closes the resource.
- param
closeable resource
- f
block using the resource
- def writeBinaryToFile(fileName: String, data: Array[Byte]): Unit
Writes binary data to file.
- object Actor
- object Aes
- object LocalMessenger
- object Messenger
- object RemoteMessenger
- object TempFile
- object Uri extends Serializable
- object eq
Type safe equality http://hseeberger.github.io/blog/2013/05/31/implicits-unchained-type-safe-equality-part2/