Merge branch 'master' of github.com:jboner/akka
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
This commit is contained in:
commit
303d34692d
128 changed files with 1372 additions and 1180 deletions
|
|
@ -41,6 +41,12 @@ trait ConnectionManager {
|
|||
*/
|
||||
def size: Int
|
||||
|
||||
/**
|
||||
* Returns if the number of 'available' is 0 or not. Value could be stale as soon as received, and this method can't be combined (easily)
|
||||
* with an atomic read of and isEmpty and version.
|
||||
*/
|
||||
def isEmpty: Boolean
|
||||
|
||||
/**
|
||||
* Shuts the connection manager down, which stops all managed actors
|
||||
*/
|
||||
|
|
@ -91,6 +97,8 @@ class LocalConnectionManager(initialConnections: Iterable[ActorRef]) extends Con
|
|||
|
||||
def size: Int = state.get.connections.size
|
||||
|
||||
def isEmpty: Boolean = state.get.connections.isEmpty
|
||||
|
||||
def connections = state.get
|
||||
|
||||
def shutdown() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue