Class ProxyHandler
java.lang.Object
io.vertx.serviceproxy.ProxyHandler
- All Implemented Interfaces:
Handler<Message<JsonObject>>
- Author:
- Tim Fox
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Register the proxy handle on the event bus.register(Vertx vertx, String address, List<io.vertx.serviceproxy.impl.InterceptorHolder> interceptorHolders) Register the proxy handle on the event bus.registerLocal(EventBus eventBus, String address) Register the local proxy handle on the event bus.registerLocal(Vertx vertx, String address, List<io.vertx.serviceproxy.impl.InterceptorHolder> interceptorHolders) Register the local proxy handle on the event bus.
-
Field Details
-
closed
protected boolean closed -
consumer
-
-
Constructor Details
-
ProxyHandler
public ProxyHandler()
-
-
Method Details
-
close
public void close() -
register
Register the proxy handle on the event bus.- Parameters:
eventBus- the event busaddress- the proxy address
-
register
public MessageConsumer<JsonObject> register(Vertx vertx, String address, List<io.vertx.serviceproxy.impl.InterceptorHolder> interceptorHolders) Register the proxy handle on the event bus.- Parameters:
vertx- the VertX instanceaddress- the proxy addressinterceptorHolders- the interceptorHolders
-
registerLocal
Register the local proxy handle on the event bus. The registration will not be propagated to other nodes in the cluster.- Parameters:
eventBus- the event busaddress- the proxy address
-
registerLocal
public MessageConsumer<JsonObject> registerLocal(Vertx vertx, String address, List<io.vertx.serviceproxy.impl.InterceptorHolder> interceptorHolders) Register the local proxy handle on the event bus. The registration will not be propagated to other nodes in the cluster.- Parameters:
vertx- the VertX instanceaddress- the proxy addressinterceptorHolders- theInterceptorHolderinterceptorHolders
-