org.apache.camel.component.rmi
Class RmiConsumer
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultConsumer<org.apache.camel.component.pojo.PojoExchange>
org.apache.camel.component.rmi.RmiConsumer
- All Implemented Interfaces:
- InvocationHandler, org.apache.camel.Consumer<org.apache.camel.component.pojo.PojoExchange>, org.apache.camel.Service
public class RmiConsumer
- extends org.apache.camel.impl.DefaultConsumer<org.apache.camel.component.pojo.PojoExchange>
- implements InvocationHandler
A Consumer
which uses RMI's UnicastRemoteObject
to consume method invocations.
- Version:
- $Revision: 533758 $
Methods inherited from class org.apache.camel.impl.DefaultConsumer |
getEndpoint, getExceptionHandler, getProcessor, handleException, setExceptionHandler, toString |
Methods inherited from class org.apache.camel.impl.ServiceSupport |
isStarted, isStopped, isStopping, start, stop |
Methods inherited from interface org.apache.camel.Service |
start, stop |
RmiConsumer
public RmiConsumer(RmiEndpoint endpoint,
org.apache.camel.Processor processor)
doStart
protected void doStart()
throws Exception
- Overrides:
doStart
in class org.apache.camel.impl.DefaultConsumer<org.apache.camel.component.pojo.PojoExchange>
- Throws:
Exception
doStop
protected void doStop()
throws Exception
- Overrides:
doStop
in class org.apache.camel.impl.DefaultConsumer<org.apache.camel.component.pojo.PojoExchange>
- 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()
Copyright © 2007 Apache Software Foundation. All Rights Reserved.