Abstract Value Members
-
abstract
val
container: Container
-
abstract
val
logger: Logger
-
-
abstract
val
vertx: Vertx
Concrete Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
def
andThen[A](g: (Unit) ⇒ A): (Message[JsonObject]) ⇒ A
-
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
def
compose[A](g: (A) ⇒ Message[JsonObject]): (A) ⇒ Unit
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
implicit
val
executionContext: ExecutionContext
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Extend this trait to get an easy to use interface for your EventBus module. It relies on the sender sending JSON requests with an
{"action":"<something>"}. It will reply with either a{"status":"ok"}JSON object or an{"status":"error", "error":"<ERROR_CODE>", "message":"<detailed message of error>"}. You can provide extra fields in your reply, by adding a JsonObject to your reply (OkorError). If you need to do something asynchronously while processing the message, useAsyncReply. You just need to map theFutureto one of theOkorErrorreplies. Exceptions that you forget to catch will always yield a "MODULE_EXCEPTION" error code.