com.twitter

util

package util

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. util
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. trait Awaitable[+T] extends AnyRef

    Wait for the result of some action.

  2. trait Bijection[A, B] extends (A) ⇒ B

    A bijection is a function for which every value in its codomain (set of all possible results) is equivalent to application of the function on a unique value in its domain (all possible inputs).

  3. class BoundedStack[A] extends Seq[A]

    A "stack" with a bounded size.

  4. trait Cancellable extends AnyRef

    Defines a trait that makes the underlying object *cancellable*.

  5. class CancellableSink extends Cancellable

  6. trait Closable extends AnyRef

    Closable is a mixin trait to describe a closable resource.

  7. trait CloseAwaitably extends Awaitable[Unit]

    A mixin to make an com.twitter.util.Awaitable out of a com.twitter.util.Closable.

  8. trait Codec[T, S] extends Bijection[T, S] with Encoder[T, S] with Decoder[T, S]

    A base trait for all Codecs that translate a type T into a serialized form S

  9. abstract class Command[-T1] extends (T1) ⇒ Unit

  10. class ConstFuture[A] extends Future[A]

    A Future that is already completed.

  11. class CountDownLatch extends AnyRef

  12. class Credentials extends AnyRef

    Java interface to Credentials.

  13. trait Decoder[T, S] extends AnyRef

    A base trait for decoders for type T from a serialized form S

  14. trait DecoderCompanion extends AnyRef

  15. trait Disposable[+T] extends AnyRef

    com.twitter.util.Disposable represents a live resource that must be disposed after use.

  16. class DoubleTrouble extends Exception

  17. sealed class Duration extends TimeLike[Duration] with Serializable

    A Duration represents the span between two points in time.

  18. trait Encoder[T, S] extends (T) ⇒ S

    A base trait for encoders of type T into a serialized form S

  19. trait EncoderCompanion extends AnyRef

  20. trait Event[+T] extends AnyRef

    Events are instantaneous values, defined only at particular instants in time (cf.

  21. abstract class ExceptionalFunction[-T1, R] extends Function[T1, R]

  22. abstract class ExceptionalFunction0[R] extends Function0[R]

  23. class ExecutorServiceFuturePool extends FuturePool

    A FuturePool implementation backed by an ExecutorService.

  24. trait Extractable[T] extends AnyRef

  25. abstract class FactoryPool[A] extends Pool[A]

  26. abstract class Function[-T1, +R] extends PartialFunction[T1, R]

    This class is for Java friendliness.

  27. abstract class Function0[R] extends () ⇒ R

  28. abstract class Function2[-T1, -T2, R] extends (T1, T2) ⇒ R

  29. abstract class Future[+A] extends Awaitable[A]

    A computation evaluated asynchronously.

  30. class FutureCancelledException extends Exception

  31. trait FutureEventListener[T] extends AnyRef

    An alternative interface for handling Future Events.

  32. trait FuturePool extends AnyRef

    A FuturePool executes tasks asynchronously, typically using a pool of worker threads.

  33. class FutureTask[A] extends Promise[A] with Runnable

  34. abstract class FutureTransformer[-A, +B] extends AnyRef

    An alternative interface for performing Future transformations; that is, converting a Future[A] to a Future[B].

  35. class InterruptibleExecutorServiceFuturePool extends ExecutorServiceFuturePool

  36. trait JavaSingleton extends AnyRef

    A mixin to allow scala objects to be used from java.

  37. class JavaTimer extends Timer

  38. class LastWriteWinsQueue[A] extends Queue[A]

    An implementation of java.

  39. final class Local[T] extends AnyRef

  40. class LongOverflowException extends Exception

  41. trait Managed[+T] extends AnyRef

    Managed[T] is a resource of type T which lifetime is explicitly managed.

  42. class MockTimer extends Timer

  43. trait Monitor extends AnyRef

    A Monitor is a composable exception handler.

  44. case class MonitorException(handlingExc: Throwable, monitorExc: Throwable) extends Exception with Product with Serializable

    Wraps an exception that happens when handling another exception in a monitor.

  45. class NoFuture extends Future[Nothing]

    A future with no future (never completes).

  46. class NullTimer extends Timer

    A NullTimer is not a timer at all: it invokes all tasks immediately and inline.

  47. trait Pool[A] extends AnyRef

  48. class Promise[A] extends Future[A] with Responder[A]

    A writeable com.twitter.util.Future that supports merging.

  49. trait ReferenceCountedTimer extends Timer

  50. class ReferenceCountingTimer extends ReferenceCountedTimer

  51. final case class Return[+R](r: R) extends Try[R] with Product with Serializable

  52. class RichU64ByteArray extends AnyRef

  53. class RichU64Long extends AnyRef

  54. class RichU64String extends AnyRef

  55. class RingBuffer[A] extends Seq[A]

  56. class ScheduledThreadPoolTimer extends Timer

  57. trait SignalHandler extends AnyRef

  58. class SimplePool[A] extends Pool[A]

  59. trait StateMachine extends AnyRef

  60. trait Stopwatch extends AnyRef

    A stopwatch may be used to measure elapsed time.

  61. class StorageUnit extends Ordered[StorageUnit]

    Representation of storage units.

  62. class SunSignalHandler extends SignalHandler

  63. trait TempFolder extends AnyRef

    Test mixin that creates a new folder for a block of code to execute in.

  64. class ThreadStoppingTimer extends Timer

  65. final case class Throw[+R](e: Throwable) extends Try[R] with Product with Serializable

  66. sealed class Time extends TimeLike[Time] with Serializable

    An absolute point in time, represented as the number of nanoseconds since the Unix epoch.

  67. trait TimeControl extends AnyRef

  68. class TimeFormat extends AnyRef

    A thread-safe wrapper around a SimpleDateFormat object.

  69. trait TimeLike[This <: TimeLike[This]] extends Ordered[This]

    A common trait for time-like values.

  70. trait TimeLikeOps[This <: TimeLike[This]] extends AnyRef

  71. class TimeoutException extends java.util.concurrent.TimeoutException

  72. trait Timer extends AnyRef

  73. trait TimerTask extends Closable

  74. sealed abstract class Try[+R] extends AnyRef

    This class represents a computation that can succeed or fail.

  75. trait Updatable[T] extends AnyRef

    Denotes an updatable container.

  76. trait Var[+T] extends AnyRef

    Trait Var represents a variable.

  77. trait Witness[-N] extends AnyRef

    A witness is the recipient of Event.

  78. trait Config[T] extends () ⇒ T

    A config object contains vars for configuring an object of type T, and an apply() method which turns this config into an object of type T.

Value Members

  1. object Await

    Await the result of some action.

  2. object Awaitable

  3. object Base64Long

    Efficient conversion of Longs to base 64 encoded strings.

  4. object Bijection

  5. object BinaryCodec

  6. object Cancellable

  7. object Closable

  8. object Codec extends EncoderCompanion with DecoderCompanion

  9. object Credentials

    Simple helper to read authentication credentials from a text file.

  10. object Decoder extends DecoderCompanion

  11. object Disposable

  12. object Duration extends TimeLikeOps[Duration] with Serializable

  13. object Encoder extends EncoderCompanion

  14. object Event

  15. object Function

  16. object Future

  17. object FuturePool

  18. object FutureTask

  19. object HandleSignal

  20. object Local

  21. object LongOverflowArith

  22. object Managed

  23. object Memoize

  24. object Monitor extends Monitor

    Defines the (Future)-{{Local}} monitor as well as some monitor utilities.

  25. object NetUtil

  26. object NonFatal

    A classifier of fatal exceptions

  27. object NullMonitor extends Monitor

    A monitor that always fails to handle an exception.

  28. object NullTimerTask extends TimerTask

  29. object Promise

  30. object RandomSocket

    A generator of random local java.net.InetSocketAddress objects with ephemeral ports.

  31. object Return extends Serializable

  32. object RootMonitor extends Monitor

  33. object SignalHandlerFactory

  34. object StateMachine

  35. object Stopwatch extends Stopwatch

    The system com.twitter.util.Stopwatch measures elapsed time using System.nanoTime.

  36. object StorageUnit

  37. val StorageUnitConversions: storage.type

  38. object SunSignalHandler

  39. object Time extends TimeLikeOps[Time] with Serializable

    Use Time.now in your program instead of System.currentTimeMillis, and unit tests will be able to adjust the current time to verify timeouts and other time-dependent behavior, without calling sleep.

  40. val TimeConversions: time.type

  41. object Timer

  42. object Try

    The Try type represents a computation that may either result in an exception or return a success value.

  43. object U64

  44. object Unsafe

  45. object Var

  46. object Witness

  47. package repository

Deprecated Value Members

  1. object Config

    You can import Config.

Inherited from AnyRef

Inherited from Any

Ungrouped