public class MessageServiceInvoker extends Object implements Runnable
PersistedMessageBO
.Modifier and Type | Field and Description |
---|---|
protected static org.apache.log4j.Logger |
LOG |
Constructor and Description |
---|
MessageServiceInvoker(PersistedMessageBO message) |
Modifier and Type | Method and Description |
---|---|
PersistedMessageBO |
getMessage() |
AsynchronousCall |
getMethodCall() |
protected Object |
getQueueService(ServiceConfiguration serviceConfiguration)
Because this is a queue we just need to grab one.
|
Object |
getService() |
protected Object |
getService(ServiceConfiguration serviceConfiguration) |
protected Object |
getTopicService(ServiceConfiguration serviceConfiguration)
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(PersistedMessageBO message) |
void |
setMethodCall(AsynchronousCall methodCall) |
void |
setService(Object service) |
protected static final org.apache.log4j.Logger LOG
public MessageServiceInvoker(PersistedMessageBO message)
protected void placeInExceptionRouting(Throwable t, AsynchronousCall call, Object service)
protected Object invokeService(AsynchronousCall methodCall) throws Exception
Exception
protected Object getService(ServiceConfiguration serviceConfiguration)
protected Object getTopicService(ServiceConfiguration serviceConfiguration)
serviceInfo
- protected Object getQueueService(ServiceConfiguration serviceConfiguration)
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 PersistedMessageBO getMessage()
public void setMessage(PersistedMessageBO message)
public Object getService()
public AsynchronousCall getMethodCall()
public void setMethodCall(AsynchronousCall methodCall)
public void setService(Object service)
Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.