All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.outbrain.ob1k.Service Maven / Gradle / Ivy

The newest version!
package com.outbrain.ob1k;

/**
 * a marker interface for a service that can contain a set of endpoints. 
* every endpoint is a method that is bound to a URL that is defined when constructing the server(see {@link com.outbrain.ob1k.server.build.ServerBuilder})
* * a method can be either synchronous or asynchronous depending on the return type. async method must return a {@link com.outbrain.ob1k.concurrent.ComposableFuture}.
* a method will be used for an endpoint provided it is public and non static. * the bounded URL is by default: http://machineName:port/{appContext}/{serviceName}/{methodName}
* all parts of the URL can be configured by using various bind options on server creation.
* asynchronous methods must not block the calling thread. *

* * @author aronen * @since 6/18/13 */ public interface Service { }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy