Package play.api.mvc

Examples of play.api.mvc.AsyncResult


            final Long startTimeMillis) {
        if (result.getWrappedResult() instanceof PlainResult) {
            int status = ((PlainResult) result.getWrappedResult()).header().status();
            log(request, UserApp.currentUser().loginId, status, startTimeMillis);
        } else if (result.getWrappedResult() instanceof AsyncResult) {
            AsyncResult asyncResult = (AsyncResult) result.getWrappedResult();
            Promise<play.api.mvc.Result> promise = Akka.asPromise(asyncResult.result());
            promise.onRedeem(new Callback<play.api.mvc.Result>() {
                @Override
                public void invoke(final play.api.mvc.Result result) throws Throwable {
                    log(request, wrapResult(result), startTimeMillis);
                }
View Full Code Here

TOP

Related Classes of play.api.mvc.AsyncResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.