Package com.codingchili.core.listener
Class BusRouter
java.lang.Object
com.codingchili.core.listener.BusRouter
- All Implemented Interfaces:
CoreDeployment
,CoreHandler
,Receiver<Request>
- Direct Known Subclasses:
BusForwarder
Simple handler that routes messages to the event bus and
passes eventbus errors back to sender.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Handles an incoming request without exception handling.void
init(CoreContext core)
Init method that is called with the context that the service was deployed from.protected void
onNodeNotReachable(Request request)
protected void
onNodeTimeout(Request request)
protected void
onRecipientFailure(Request request)
protected void
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
Methods inherited from interface com.codingchili.core.listener.CoreHandler
address
-
Constructor Details
-
BusRouter
public BusRouter()
-
-
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
- Parameters:
core
- the core context to use.
-
handle
Description copied from interface:Receiver
Handles an incoming request without exception handling. -
send
-
onRecipientFailure
-
onNodeNotReachable
-
onNodeTimeout
-