|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.ksb.messaging.MessageServiceInvoker
public class MessageServiceInvoker
Handles invocation of a PersistedMessage
.
Field Summary | |
---|---|
protected static org.apache.log4j.Logger |
LOG
|
Constructor Summary | |
---|---|
MessageServiceInvoker(PersistedMessage message)
|
Method Summary | |
---|---|
PersistedMessage |
getMessage()
|
AsynchronousCall |
getMethodCall()
|
protected Object |
getQueueService(ServiceInfo serviceInfo)
Because this is a queue we just need to grab one. |
Object |
getService()
|
protected Object |
getService(ServiceInfo serviceInfo)
|
protected Object |
getTopicService(ServiceInfo serviceInfo)
Get the service as a topic. |
protected Object |
invokeService(AsynchronousCall methodCall)
Invokes the AsynchronousCall represented on the methodCall on the service contained in the ServiceInfo object on the AsynchronousCall. |
protected void |
notifyGlobalCallbacks(AsynchronousCall methodCall,
Object callResult)
|
protected void |
notifyOnCallback(AsynchronousCall methodCall,
AsynchronousCallback callback,
Object callResult)
|
protected void |
notifyOnCallback(AsynchronousCall methodCall,
Object callResult)
Used in case the thread that dumped this work into the queue is waiting for the work to be done to continue processing. |
protected void |
placeInExceptionRouting(Throwable t,
AsynchronousCall call,
Object service)
Executed when an exception is encountered during message invocation. |
void |
run()
|
void |
setMessage(PersistedMessage message)
|
void |
setMethodCall(AsynchronousCall methodCall)
|
void |
setService(Object service)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.log4j.Logger LOG
Constructor Detail |
---|
public MessageServiceInvoker(PersistedMessage message)
Method Detail |
---|
public void run()
run
in interface Runnable
protected void placeInExceptionRouting(Throwable t, AsynchronousCall call, Object service)
protected Object invokeService(AsynchronousCall methodCall) throws Exception
Exception
protected Object getService(ServiceInfo serviceInfo)
protected Object getTopicService(ServiceInfo serviceInfo)
serviceInfo
-
protected Object getQueueService(ServiceInfo serviceInfo)
serviceInfo
-
protected void notifyOnCallback(AsynchronousCall methodCall, Object callResult)
callback
- protected void notifyGlobalCallbacks(AsynchronousCall methodCall, Object callResult)
protected void notifyOnCallback(AsynchronousCall methodCall, AsynchronousCallback callback, Object callResult)
public PersistedMessage getMessage()
public void setMessage(PersistedMessage message)
public Object getService()
public AsynchronousCall getMethodCall()
public void setMethodCall(AsynchronousCall methodCall)
public void setService(Object service)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |