Class

shade.memcached.internals

SpyMemcachedIntegration

Related Doc: package internals

Permalink

class SpyMemcachedIntegration extends SpyObject with ConnectionObserver

Hooking in the SpyMemcached Internals.

Linear Supertypes
ConnectionObserver, SpyObject, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SpyMemcachedIntegration
  2. ConnectionObserver
  3. SpyObject
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SpyMemcachedIntegration(cf: ConnectionFactory, addrs: Seq[InetSocketAddress], scheduler: Scheduler)

    Permalink

    cf

    is Spy's Memcached connection factory

    addrs

    is a list of addresses to connect to

    scheduler

    is for making timeouts work

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addObserver(obs: ConnectionObserver): Boolean

    Permalink

    Add a connection observer.

    Add a connection observer.

    If connections are already established, your observer will be called with the address and -1.

    obs

    the ConnectionObserver you wish to add

    returns

    true if the observer was added.

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. final val authDescriptor: Option[AuthDescriptor]

    Permalink
    Attributes
    protected
  7. final val authMonitor: AuthThreadMonitor

    Permalink
    Attributes
    protected
  8. def broadcastOp(of: BroadcastOpFactory, nodes: Collection[MemcachedNode]): CountDownLatch

    Permalink
  9. def broadcastOp(of: BroadcastOpFactory): CountDownLatch

    Permalink
  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def connectionEstablished(sa: SocketAddress, reconnectCount: Int): Unit

    Permalink

    A connection has just successfully been established on the given socket.

    A connection has just successfully been established on the given socket.

    sa

    the address of the node whose connection was established

    reconnectCount

    the number of attempts before the connection was established

    Definition Classes
    SpyMemcachedIntegration → ConnectionObserver
  12. def connectionLost(sa: SocketAddress): Unit

    Permalink
    Definition Classes
    SpyMemcachedIntegration → ConnectionObserver
  13. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def expiryToSeconds(duration: Duration): Long

    Permalink
    Attributes
    protected
  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. def getLogger(): Logger

    Permalink
    Attributes
    protected[net.spy.memcached.compat]
    Definition Classes
    SpyObject
  19. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. final val mconn: MemcachedConnection

    Permalink
    Attributes
    protected
  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final val opFact: OperationFactory

    Permalink
    Attributes
    protected
  26. final def prepareFuture[T](key: String, op: Operation, promise: Promise[Result[T]], atMost: FiniteDuration)(implicit ec: ExecutionContext): CancelableFuture[Result[T]]

    Permalink
    Attributes
    protected
  27. def realAsyncAdd(key: String, data: Array[Byte], flags: Int, exp: Duration, timeout: FiniteDuration)(implicit ec: ExecutionContext): CancelableFuture[Result[Option[Long]]]

    Permalink
  28. def realAsyncCAS(key: String, casID: Long, flags: Int, data: Array[Byte], exp: Duration, timeout: FiniteDuration)(implicit ec: ExecutionContext): CancelableFuture[Result[Boolean]]

    Permalink
  29. def realAsyncDelete(key: String, timeout: FiniteDuration)(implicit ec: ExecutionContext): CancelableFuture[Result[Boolean]]

    Permalink
  30. def realAsyncGet(key: String, timeout: FiniteDuration)(implicit ec: ExecutionContext): CancelableFuture[Result[Option[Array[Byte]]]]

    Permalink
  31. def realAsyncGets(key: String, timeout: FiniteDuration)(implicit ec: ExecutionContext): CancelableFuture[Result[Option[(Array[Byte], Long)]]]

    Permalink
  32. def realAsyncMutate(key: String, by: Long, mutator: Mutator, default: Option[Long], exp: Duration, timeout: FiniteDuration)(implicit ec: ExecutionContext): CancelableFuture[Result[Long]]

    Permalink
  33. def realAsyncSet(key: String, data: Array[Byte], flags: Int, exp: Duration, timeout: FiniteDuration)(implicit ec: ExecutionContext): CancelableFuture[Result[Long]]

    Permalink
  34. def shutdown(timeout: Long, unit: TimeUnit): Boolean

    Permalink
  35. def shutdown(): Unit

    Permalink

    Shut down immediately.

  36. final val shuttingDown: AtomicBoolean

    Permalink
    Attributes
    protected
  37. final val statusTranslation: PartialFunction[OperationStatus, Status]

    Permalink
    Attributes
    protected
  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  39. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  40. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. def waitForQueues(timeout: Long, unit: TimeUnit): Boolean

    Permalink

    Wait for the queues to die down.

    Wait for the queues to die down.

    timeout

    the amount of time time for shutdown

    unit

    the TimeUnit for the timeout

    returns

    result of the request for the wait

    Exceptions thrown

    IllegalStateException in the rare circumstance where queue is too full to accept any more requests

Inherited from ConnectionObserver

Inherited from SpyObject

Inherited from AnyRef

Inherited from Any

Ungrouped