Package com.codingchili.core.listener
Class BusForwarder
java.lang.Object
com.codingchili.core.listener.BusRouter
com.codingchili.core.listener.BusForwarder
- All Implemented Interfaces:
CoreDeployment
,CoreHandler
,Receiver<Request>
A bus routerhandler with a static delivery address.
-
Constructor Summary
-
Method Summary
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
Methods inherited from interface com.codingchili.core.listener.CoreDeployment
start, stop
-
Constructor Details
-
BusForwarder
-
-
Method Details
-
init
Description copied from interface:CoreDeployment
Init method that is called with the context that the service was deployed from.- Specified by:
init
in interfaceCoreDeployment
- Overrides:
init
in classBusRouter
- Parameters:
context
- the core context to use.
-
handle
Description copied from interface:Receiver
Handles an incoming request without exception handling. -
address
- Returns:
- 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.
-