public class BusForwarder extends BusRouter
A bus routerhandler with a static delivery address.
Methods inherited from class com.codingchili.core.listener.BusRouter
onNodeNotReachable, onNodeTimeout, onRecipientFailure, send
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
BusForwarderpublic BusForwarder(String address)
initpublic void init(CoreContext context)Description copied from interface:
CoreDeploymentInit method that is called with the context that the service was deployed from.
handlepublic void handle(Request request)Description copied from interface:
ReceiverHandles an incoming request without exception handling.
addresspublic String address()
- the address of the handler. If not implemented the @Address
annotation will be used, if missing an error is thrown.
Could potentially lead to Runtime errors but is allowed here as this is called during deployment. Reconsider this decision later.