io.vertx.serviceproxy

## Class ProxyHandler

- java.lang.Object
- - io.vertx.serviceproxy.ProxyHandler

- All Implemented Interfaces:
    Handler<Message<JsonObject>>
  Direct Known Subclasses:
    MailServiceVertxProxyHandler

      public abstract class ProxyHandler
      extends Object
      implements Handler<Message<JsonObject>>

  Author:
    Tim Fox

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected boolean` | `closed`
    `protected MessageConsumer<JsonObject>` | `consumer`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ProxyHandler()`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()`
    `abstract MessageConsumer<JsonObject>` | `registerHandler(String address)` Register the proxy handle on the event bus.
    `void` | `setConsumer(MessageConsumer<JsonObject> consumer)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface io.vertx.core.Handler

      `handle`

- - ### Field Detail

    - #### closed

          protected boolean closed

    - #### consumer

          protected MessageConsumer<JsonObject> consumer

  - ### Constructor Detail

    - #### ProxyHandler

          public ProxyHandler()

  - ### Method Detail

    - #### setConsumer

          public void setConsumer(MessageConsumer<JsonObject> consumer)

    - #### close

          public void close()

    - #### registerHandler

          public abstract MessageConsumer<JsonObject> registerHandler(String address)

      Register the proxy handle on the event bus.
      Parameters:
        `address` - the proxy address
      Returns:
        the registered message consumer

Copyright © 2016. All rights reserved.