org.kuali.rice.ksb.messaging.serviceproxies
Class AsynchronousServiceCallProxy
java.lang.Object
org.kuali.rice.core.proxy.BaseInvocationHandler
org.kuali.rice.ksb.messaging.serviceproxies.AsynchronousServiceCallProxy
- All Implemented Interfaces:
- InvocationHandler, TargetedInvocationHandler
- Direct Known Subclasses:
- SynchronousServiceCallProxy
public class AsynchronousServiceCallProxy
- extends BaseInvocationHandler
- implements TargetedInvocationHandler
Standard default proxy used to call services asynchronously. Persists the method call to the db so call is never lost and
only sent when transaction is committed.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AsynchronousServiceCallProxy
protected AsynchronousServiceCallProxy(List<RemotedServiceHolder> serviceDefs,
AsynchronousCallback callback,
Serializable context,
String value1,
String value2)
createInstance
public static Object createInstance(List<RemotedServiceHolder> serviceDefs,
AsynchronousCallback callback,
Serializable context,
String value1,
String value2)
invokeInternal
protected Object invokeInternal(Object proxy,
Method method,
Object[] arguments)
throws Throwable
- Specified by:
invokeInternal
in class BaseInvocationHandler
- Throws:
Throwable
saveMessage
protected void saveMessage(PersistedMessage message)
executeMessage
protected void executeMessage(PersistedMessage message)
throws Exception
- Throws:
Exception
getTarget
public Object getTarget()
- Returns the List of asynchronous services which will be invoked by calls to this proxy.
This is a List because, in the case of Topics, there can be more than one service invoked.
- Specified by:
getTarget
in interface TargetedInvocationHandler
getCallback
public AsynchronousCallback getCallback()
setCallback
public void setCallback(AsynchronousCallback callback)
getServiceDefs
public List<RemotedServiceHolder> getServiceDefs()
setServiceDefs
public void setServiceDefs(List<RemotedServiceHolder> serviceDefs)
Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.