org.apache.camel.component.rmi
Class RmiConsumer
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultConsumer
org.apache.camel.component.rmi.RmiConsumer
- All Implemented Interfaces:
- InvocationHandler, Consumer, Service, ShutdownableService
public class RmiConsumer
- extends DefaultConsumer
- implements InvocationHandler
A Consumer which uses RMI's UnicastRemoteObject to consume
method invocations.
- Version:
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, start, stop, suspend |
RmiConsumer
public RmiConsumer(RmiEndpoint endpoint,
Processor processor)
doStart
protected void doStart()
throws Exception
- Overrides:
doStart in class DefaultConsumer
- Throws:
Exception
doStop
protected void doStop()
throws Exception
- Overrides:
doStop in class DefaultConsumer
- Throws:
Exception
invoke
public Object invoke(Object proxy,
Method method,
Object[] args)
throws Throwable
- Specified by:
invoke in interface InvocationHandler
- Throws:
Throwable
getProxy
public Remote getProxy()
getStub
public Remote getStub()
Apache CAMEL