public interface FederatedService
FederatedServiceto indicate that the interface can be split across federated regions. The regions for each instance of the federated service are determined by the values returned by
getAgencyIdsWithCoverageArea(). The federated service instances are all seamlessly linked together as a virtual
FederatedServiceInvocationHandler, passing method invocations to the service interface to the appropriate federate service instance based on method arguments such as agency ids or lat-lon coordinates. How are method service interface method arguments used to determine where to dispatch a method? Each method in a service interface must be annotated to indicate how the arguments should be evaluated to determine the target agency id or coordinate location for a particular method call. The task of processing these method annotations is handled by
FederatedServiceMethodInvocationHandlerFactory. See the documentation of that class for a full list of available annotations.
Copyright © 2014 OneBusAway. All Rights Reserved.