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);
}
Aggregations