class Message[T] extends AnyRef
Represents a message that is received from the event bus in a handler.
Messages have a io.vertx.scala.core.eventbus.Message#body, which can be null, and also io.vertx.scala.core.eventbus.Message#headers, which can be empty.
If the message was sent specifying a reply handler, it can be replied to using io.vertx.scala.core.eventbus.Message#reply.
If you want to notify the sender that processing failed, then io.vertx.scala.core.eventbus.Message#fail can be called.
- Alphabetic
 - By Inheritance
 
- Message
 - AnyRef
 - Any
 
- Hide All
 - Show All
 
- Public
 - All
 
Instance Constructors
-  new Message(_asJava: AnyRef)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T])
 
Value Members
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        !=(arg0: Any): Boolean
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        ##(): Int
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        ==(arg0: Any): Boolean
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        address(): String
      
      
      
The address the message was sent to
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        asInstanceOf[T0]: T0
      
      
      
- Definition Classes
 - Any
 
 -  def asJava: AnyRef
 - 
      
      
      
        
      
    
      
        
        def
      
      
        body(): T
      
      
      
The body of the message.
The body of the message. Can be null. * @return the body, or null.
 - 
      
      
      
        
      
    
      
        
        def
      
      
        clone(): AnyRef
      
      
      
- Attributes
 - protected[java.lang]
 - Definition Classes
 - AnyRef
 - Annotations
 - @native() @throws( ... )
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        eq(arg0: AnyRef): Boolean
      
      
      
- Definition Classes
 - AnyRef
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        equals(arg0: Any): Boolean
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        fail(failureCode: Int, message: String): Unit
      
      
      
Signal to the sender that processing of this message failed.
Signal to the sender that processing of this message failed.
If the message was sent specifying a result handler the handler will be called with a failure corresponding to the failure code and message specified here. * @param failureCode A failure code to pass back to the sender
- message
 A message to pass back to the sender
 - 
      
      
      
        
      
    
      
        
        def
      
      
        finalize(): Unit
      
      
      
- Attributes
 - protected[java.lang]
 - Definition Classes
 - AnyRef
 - Annotations
 - @throws( classOf[java.lang.Throwable] )
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        getClass(): Class[_]
      
      
      
- Definition Classes
 - AnyRef → Any
 - Annotations
 - @native()
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        hashCode(): Int
      
      
      
- Definition Classes
 - AnyRef → Any
 - Annotations
 - @native()
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        headers(): MultiMap
      
      
      
Multi-map of message headers.
Multi-map of message headers. Can be empty * @return the headers
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        isInstanceOf[T0]: Boolean
      
      
      
- Definition Classes
 - Any
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        isSend(): Boolean
      
      
      
Signals if this message represents a send or publish event.
Signals if this message represents a send or publish event. * @return true if this is a send.
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        ne(arg0: AnyRef): Boolean
      
      
      
- Definition Classes
 - AnyRef
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        notify(): Unit
      
      
      
- Definition Classes
 - AnyRef
 - Annotations
 - @native()
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        notifyAll(): Unit
      
      
      
- Definition Classes
 - AnyRef
 - Annotations
 - @native()
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        reply[R](message: AnyRef, options: DeliveryOptions, replyHandler: Handler[AsyncResult[Message[R]]])(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[R]): Unit
      
      
      
The same as
reply(R message, DeliveryOptions)but you can specify handler for the reply - i.e.The same as
reply(R message, DeliveryOptions)but you can specify handler for the reply - i.e. to receive the reply to the reply. * @param message the reply message- options
 the delivery options see DeliveryOptions
- replyHandler
 the reply handler for the reply.
 - 
      
      
      
        
      
    
      
        
        def
      
      
        reply(message: AnyRef, options: DeliveryOptions): Unit
      
      
      
Link io.vertx.scala.core.eventbus.Message#reply but allows you to specify delivery options for the reply.
Link io.vertx.scala.core.eventbus.Message#reply but allows you to specify delivery options for the reply. * @param message the reply message
- options
 the delivery options see DeliveryOptions
 - 
      
      
      
        
      
    
      
        
        def
      
      
        reply[R](message: AnyRef, replyHandler: Handler[AsyncResult[Message[R]]])(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[R]): Unit
      
      
      
The same as
reply(R message)but you can specify handler for the reply - i.e.The same as
reply(R message)but you can specify handler for the reply - i.e. to receive the reply to the reply. * @param message the message to reply with.- replyHandler
 the reply handler for the reply.
 - 
      
      
      
        
      
    
      
        
        def
      
      
        reply(message: AnyRef): Unit
      
      
      
Reply to this message.
Reply to this message.
If the message was sent specifying a reply handler, that handler will be called when it has received a reply. If the message wasn't sent specifying a receipt handler this method does nothing. * @param message the message to reply with.
 - 
      
      
      
        
      
    
      
        
        def
      
      
        replyAddress(): Option[String]
      
      
      
The reply address.
The reply address. Can be null. * @return the reply address, or null, if message was sent without a reply handler.
 - 
      
      
      
        
      
    
      
        
        def
      
      
        replyFuture[R](message: AnyRef, options: DeliveryOptions)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[R]): scala.concurrent.Future[Message[R]]
      
      
      
Like reply but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
 - 
      
      
      
        
      
    
      
        
        def
      
      
        replyFuture[R](message: AnyRef)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[R]): scala.concurrent.Future[Message[R]]
      
      
      
Like reply but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        synchronized[T0](arg0: ⇒ T0): T0
      
      
      
- Definition Classes
 - AnyRef
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        toString(): String
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(): Unit
      
      
      
- Definition Classes
 - AnyRef
 - Annotations
 - @throws( ... )
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long, arg1: Int): Unit
      
      
      
- Definition Classes
 - AnyRef
 - Annotations
 - @throws( ... )
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long): Unit
      
      
      
- Definition Classes
 - AnyRef
 - Annotations
 - @native() @throws( ... )