Metadata Summary
RemotingService
Class Annotation | @RemotingService |
Description | Spring provides support for various remoting technologies. GigaSpaces uses the same concepts to provide remoting, using the space as the underlying protocol |
Attribute Annotation | @ExecutorProxy |
Method argument | @Routing The mechanism that is in charge of routing the objects into and out of the corresponding partitions. The routing is based on a designated attribute inside the objects that are written to the Space, called the Routing Index. |
// Service Implementation
@RemotingService
public class DataProcessor implements IDataProcessor {
public Data processData(Data data) {
data.setProcessor(true);
return data;
}
}
// Client remoting proxy
public class DataRemoting {
@ExecutorProxy
private IDataProcessor dataProcessor;
// ...
}
// remote method with routing parameter
public interface MyService {
void doSomething(@Routing int param1, int param2);
}
ExecutorProxy
Attribute Annotation | @ExecutorProxy |
Description | Spring provides support for various remoting technologies. GigaSpaces uses the same concepts to provide remoting, using the space as the underlying protocol |
// Client remoting proxy
public class DataRemoting {
@ExecutorProxy
private IDataProcessor dataProcessor;
// ...
}
Routing
Method argument | @Routing |
Description | Spring provides support for various remoting technologies. GigaSpaces uses the same concepts to provide remoting, using the space as the underlying protocol |
// Service Implementation
@RemotingService
// remote method with routing parameter
public interface MyService {
void doSomething(@Routing int param1, int param2);
}