/** * A test service interface. */ @Service public interface ITestService { /** * A test method. */ public IFuture<Void> testMethod(); }
/** * An example interface that extends another. */ @Service public interface IExtendedService extends IBasicService { /** * Example method returning some string value. * @return Some extended info. */ public IFuture<String> getExtendedInfo(); }
@Service public interface ILotteryService { public ISubscriptionIntermediateFuture<String> subscribeToLottery(); public IFuture<Boolean> claimItem(String item); }
/** * */ @Service public interface IRuleService extends IRuleEngineService, IRulebaseService { }
/** * */ @Service public interface IRuleService extends IRuleEngineService, IRulebaseService { }
@Service public static class MyAService implements IAService { public IFuture test() { return new Future("a"); } } }
/** * Service for registries that allows subscribing * and following the state of the registry. */ @Service public interface IRegistrySynchronizationService { /** * Subscribe to change events of the registry. */ public ISubscriptionIntermediateFuture<IRegistryEvent> subscribeToEvents(); }
@Service public interface IStampService { public IFuture<Void> stamp(IComponentIdentifier wp, String text); }
/** * An example service interface. */ @Service public interface IExampleService { /** * An example method. */ public IFuture<String> getInfo(); }
/** * Chat service implementation. */ @Service public class ChatServiceD4 extends ChatServiceD3 { }
/** * An example service interface. */ @Service public interface IExampleService { /** * An example method. */ public IFuture<String> getInfo(); }
@Service public interface ITestService { /** * */ public ISubscriptionIntermediateFuture<String> test(); }
/** * Interface of a news service. */ @Service public interface INewsService { /** * Subscribe to the newsprovider. */ public ISubscriptionIntermediateFuture<String> subscribeToNews(); }
/** * Email fetching service. */ @Service public interface IEmailFetcherService { /** * Fetch emails for a subscription. * @param sub The subscription. * @return The emails. */ public IIntermediateFuture<Email> fetchEmails(SubscriptionInfo sub); }
/** * Implementation of a service. */ @Service public class ServiceCallService implements IServiceCallService { /** * Dummy method for service call benchmark. */ public IFuture<Void> call() { return IFuture.DONE; } }
/** * Service 1. */ @Service @Timeout(value = Timeout.NONE) public interface IService1 { // @Timeout(Timeout.NONE) public IFuture<Void> service(); }
/** * Service 2. */ @Service @Timeout(Timeout.NONE) public interface IService2 { // @Timeout(Timeout.NONE) public IFuture<Void> service(); }
@Agent @Service @ProvidedServices(@ProvidedService(type = ITestService.class)) public class ProviderAgent implements ITestService { }
@Agent @Service @ProvidedServices(@ProvidedService(type=IInfoService.class)) public class MicroProviderAgent implements IInfoService { /** * Get some info. * @return Some info. */ public IFuture<String> getInfo() { return new Future<String>("some info"); } }
@Agent @Service @ProvidedServices({ @ProvidedService(type=IInjectionTestService.class, implementation = @Implementation(InjectionTestService.class)) }) public class ProviderAgent { }