|
Akka/Scala example source code file (Response.scala)
The Response.scala Akka example source code
/**
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.zeromq
/**
* Base trait for the events raised by a ZeroMQ socket actor
*/
sealed trait Response
/**
* When the ZeroMQ socket connects it sends this message to a listener
*/
case object Connecting extends Response {
/**
* Java API: get the singleton instance
*/
def getInstance = this
}
/**
* When the ZeroMQ socket disconnects it sends this message to a listener
*/
case object Closed extends Response {
/**
* Java API: get the singleton instance
*/
def getInstance = this
}
Other Akka source code examplesHere is a short list of links related to this Akka Response.scala source code file: |
| ... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.