com.dongxiguo.memcontinuationed

Memcontinuationed

final class Memcontinuationed extends AnyRef

Connections to a memcached server cluster.

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

Instance Constructors

  1. new Memcontinuationed(group: AsynchronousChannelGroup, locator: (StorageAccessor[_]) ⇒ SocketAddress)

    group

    the channel group used to create socket to memcached server

    locator

    the function decide where the server is for specified key (you may implement ketama hashing here)

Type Members

  1. final class Mutable[Value] extends AnyRef

    An key/value pair that can be modified.

Value Members

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

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

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

    Definition Classes
    AnyRef → Any
  4. final def add[Value](accessor: StorageAccessor[Value], value: Value, exptime: Exptime = Exptime.NeverExpires)(implicit catcher: Catcher[Unit]): Unit @scala.util.continuations.cpsParam[Unit,Unit]

    Send an add request to server.

    Send an add request to server.

    accessor

    the key sent to server.

    value

    the new value sent to server.

    exptime

    the expiration time sent to server.

    catcher

    the catcher to handle exceptions.

    Annotations
    @throws( classOf[ProtocolException] ) @throws( classOf[ExistsException] ) @throws( classOf[NotStoredException] ) @throws( classOf[NotFoundException] ) @throws( classOf[ServerErrorException] )
  5. final def addOrAppend[Value](accessor: StorageAccessor[Value], value: Value, exptime: Exptime = Exptime.NeverExpires)(implicit catcher: Catcher[Unit]): Unit @scala.util.continuations.cpsParam[Unit,Unit]

    Send an add request to server, and if there is that key on server, send an append request instead.

    Send an add request to server, and if there is that key on server, send an append request instead.

    accessor

    the key sent to server.

    value

    the new value sent to server.

    exptime

    the expiration time sent to server.

    catcher

    the catcher to handle exceptions.

    Annotations
    @throws( classOf[ProtocolException] ) @throws( classOf[ServerErrorException] )
  6. final def append[Value](accessor: StorageAccessor[Value], value: Value, exptime: Exptime = Exptime.NeverExpires)(implicit catcher: Catcher[Unit]): Unit @scala.util.continuations.cpsParam[Unit,Unit]

    Send an append request to server.

    Send an append request to server.

    accessor

    the key sent to server.

    value

    the data to be append.

    exptime

    the expiration time sent to server.

    catcher

    the catcher to handle exceptions.

    Annotations
    @throws( classOf[ProtocolException] ) @throws( classOf[ExistsException] ) @throws( classOf[NotStoredException] ) @throws( classOf[NotFoundException] ) @throws( classOf[ServerErrorException] )
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def delete[Value](accessor: StorageAccessor[Value])(implicit catcher: Catcher[Unit]): Unit @scala.util.continuations.cpsParam[Unit,Unit]

    Send an delete request to server.

    Send an delete request to server.

    accessor

    the key being deleted.

    catcher

    the catcher to handle exceptions.

    Annotations
    @throws( classOf[NotFoundException] ) @throws( classOf[ServerErrorException] ) @throws( classOf[ProtocolException] )
  10. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def get[Value](allAccessors: StorageAccessor[Value]*)(implicit catcher: Catcher[Unit], valueManifest: Manifest[Value]): Map[com.dongxiguo.memcontinuationed.StorageAccessor[Value],Value] @scala.util.continuations.cpsParam[Unit,Unit]

    Returns key/value pairs by allAccessors.

    Returns key/value pairs by allAccessors.

    If some requested keys does not exist, the returned pairs may be less than requested keys.

    allAccessors

    the requested keys.

    catcher

    the catcher to handle exceptions.

    valueManifest

    the manifest for Value.

    Annotations
    @throws( classOf[ProtocolException] ) @throws( classOf[ServerErrorException] )
  14. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  15. final def gets[Value](allAccessors: StorageAccessor[Value]*)(implicit catcher: Catcher[Unit], valueManifest: Manifest[Value]): Map[com.dongxiguo.memcontinuationed.StorageAccessor[Value],Memcontinuationed.this.Mutable[Value]] @scala.util.continuations.cpsParam[Unit,Unit]

    Returns key/value pairs by allAccessors for update.

    Returns key/value pairs by allAccessors for update.

    If some requested keys does not exist, the returned pairs may be less than requested keys.

    allAccessors

    the requested keys.

    catcher

    the catcher to handle exceptions.

    valueManifest

    the manifest for Value.

    Annotations
    @throws( classOf[ProtocolException] ) @throws( classOf[ServerErrorException] )
  16. def hashCode(): Int

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

    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  21. final def prepend[Value](accessor: StorageAccessor[Value], value: Value, exptime: Exptime = Exptime.NeverExpires)(implicit catcher: Catcher[Unit]): Unit @scala.util.continuations.cpsParam[Unit,Unit]

    Send a prepend request to server.

    Send a prepend request to server.

    accessor

    the key sent to server.

    value

    the data to be prepend.

    exptime

    the expiration time sent to server.

    catcher

    the catcher to handle exceptions.

    Annotations
    @throws( classOf[ProtocolException] ) @throws( classOf[ExistsException] ) @throws( classOf[NotStoredException] ) @throws( classOf[NotFoundException] ) @throws( classOf[ServerErrorException] )
  22. final def replace[Value](accessor: StorageAccessor[Value], value: Value, exptime: Exptime = Exptime.NeverExpires)(implicit catcher: Catcher[Unit]): Unit @scala.util.continuations.cpsParam[Unit,Unit]

    Send a replace request to server.

    Send a replace request to server.

    accessor

    the key sent to server.

    value

    the new value sent to server.

    exptime

    the expiration time sent to server.

    catcher

    the catcher to handle exceptions.

    Annotations
    @throws( classOf[ProtocolException] ) @throws( classOf[ExistsException] ) @throws( classOf[NotStoredException] ) @throws( classOf[NotFoundException] ) @throws( classOf[ServerErrorException] )
  23. final def require[Value](accessor: StorageAccessor[Value])(implicit catcher: Catcher[Unit], valueManifest: Manifest[Value]): Value @scala.util.continuations.cpsParam[Unit,Unit]

    Returns one value by accessor.

    Returns one value by accessor.

    accessor

    the requested key.

    catcher

    the catcher to handle exceptions.

    valueManifest

    the manifest for Value.

    Annotations
    @throws( classOf[ProtocolException] ) @throws( classOf[ServerErrorException] ) @throws( classOf[NotFoundException] )
    Exceptions thrown
    com.dongxiguo.memcontinuationed.NotFoundException

    if the key does not exist.

    Note

    If you need to fetch more than one value, use #get instead.

  24. final def requireForCAS[Value](accessor: StorageAccessor[Value])(implicit catcher: Catcher[Unit], valueManifest: Manifest[Value]): Memcontinuationed.this.Mutable[Value] @scala.util.continuations.cpsParam[Unit,Unit]

    Returns one value by the accessor for update.

    Returns one value by the accessor for update.

    accessor

    the key sent to server

    valueManifest

    the manifest for Value.

    Annotations
    @throws( classOf[ProtocolException] ) @throws( classOf[ServerErrorException] ) @throws( classOf[NotFoundException] )
    Exceptions thrown
    com.dongxiguo.memcontinuationed.NotFoundException

    if the key does not exist

    Note

    If you need to fetch multiply values, use #gets instead.

  25. final def set[Value](accessor: StorageAccessor[Value], value: Value, exptime: Exptime = Exptime.NeverExpires)(implicit catcher: Catcher[Unit]): Unit @scala.util.continuations.cpsParam[Unit,Unit]

    Send a set request to server.

    Send a set request to server.

    accessor

    the key sent to server.

    value

    the new value sent to server.

    exptime

    the expiration time sent to server.

    catcher

    the catcher to handle exceptions.

    Annotations
    @throws( classOf[ProtocolException] ) @throws( classOf[ExistsException] ) @throws( classOf[NotStoredException] ) @throws( classOf[NotFoundException] ) @throws( classOf[ServerErrorException] )
  26. final def shutdown(): Unit

    Starts to shut down all connections to server and returns immediately.

    Starts to shut down all connections to server and returns immediately.

    Later request to this Memcontinuationed will be rejected. All pending requests will not be terminated, and the responses for these requests will be handled as usual.

  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped