Packages

c

general

ChannelRegistry

class ChannelRegistry extends AnyRef

This class stores the members (channels) of a Dispatcher. It is essentially a wrapper around a bi-directional map that stores the study result IDs together with their corresponding channels specified by an ActorRef.

A Registry does not define who is member - it just stores the open channels. Therefore it is possible that a client is a member but currently doesn't have an open channel.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ChannelRegistry
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ChannelRegistry()

Value Members

  1. def containsStudyResult(studyResultId: Long): Boolean
  2. def getAllChannels: Set[ActorRef]
  3. def getAllStudyResultIds: Set[Long]
  4. def getChannel(studyResultId: Long): Option[ActorRef]
  5. def getStudyResult(channel: ActorRef): Option[Long]
  6. def isEmpty: Boolean
  7. def register(studyResultId: Long, channel: ActorRef): ActorRef
  8. def unregister(studyResultId: Long): Option[ActorRef]