Search in sources :

Example 1 with Create

use of com.linkedin.restli.server.annotations.RestMethod.Create in project rest.li by linkedin.

the class MixedResource method create.

@Create
public void create(Greeting entity, @CallbackParam final Callback<CreateResponse> callback) {
    final Runnable requestHandler = new Runnable() {

        public void run() {
            callback.onSuccess(new CreateResponse(HttpStatus.S_200_OK));
        }
    };
    scheduler.schedule(requestHandler, DELAY, TimeUnit.MILLISECONDS);
}
Also used : CreateResponse(com.linkedin.restli.server.CreateResponse) Create(com.linkedin.restli.server.annotations.RestMethod.Create)

Aggregations

CreateResponse (com.linkedin.restli.server.CreateResponse)1 Create (com.linkedin.restli.server.annotations.RestMethod.Create)1