public void trace(CharSequence msg) { trace(msg, null); }
public void trace(CharSequence msg) { trace(msg, null); }
public void run() { ServletRequestContext.log.trace("Starting runnable " + runnable); try { runnable.run(); ServletRequestContext.log.trace("Ended runnable " + runnable); } catch (Exception e) { if (e instanceof InterruptedException) { Thread.currentThread().interrupt(); } ServletRequestContext.log.trace("Failure of runnable " + runnable, e); } } });
public void run() { ServletRequestContext.log.trace("Starting runnable " + runnable); try { runnable.run(); ServletRequestContext.log.trace("Ended runnable " + runnable); } catch (Exception e) { if (e instanceof InterruptedException) { Thread.currentThread().interrupt(); } ServletRequestContext.log.trace("Failure of runnable " + runnable, e); } } });
synchronized void endAsync() { if (context != null) { log.trace("Completing async"); context.complete(); } }
synchronized void endAsync() { if (context != null) { log.trace("Completing async"); context.complete(); } }
/** * Begin or reuse an async context from the servlet. * * @return the async context */ synchronized AsyncContext beginAsync() { if (req.isAsyncStarted()) { context = req.getAsyncContext(); } else { log.trace("Starting async mode"); context = req.startAsync(); } return context; }
/** * Begin or reuse an async context from the servlet. * * @return the async context */ synchronized AsyncContext beginAsync() { if (req.isAsyncStarted()) { context = req.getAsyncContext(); } else { log.trace("Starting async mode"); context = req.startAsync(); } return context; }
@Override public void execute(final Runnable runnable) { if (ctx.req.isAsyncSupported()) { AsyncContext context = ctx.beginAsync(); ServletRequestContext.log.trace("Scheduling runnable " + runnable); context.start(new Runnable() { public void run() { ServletRequestContext.log.trace("Starting runnable " + runnable); try { runnable.run(); ServletRequestContext.log.trace("Ended runnable " + runnable); } catch (Exception e) { if (e instanceof InterruptedException) { Thread.currentThread().interrupt(); } ServletRequestContext.log.trace("Failure of runnable " + runnable, e); } } }); } else { throw new RejectedExecutionException("Async not enabled currently for this servlet"); } }
@Override public void execute(final Runnable runnable) { if (ctx.req.isAsyncSupported()) { AsyncContext context = ctx.beginAsync(); ServletRequestContext.log.trace("Scheduling runnable " + runnable); context.start(new Runnable() { public void run() { ServletRequestContext.log.trace("Starting runnable " + runnable); try { runnable.run(); ServletRequestContext.log.trace("Ended runnable " + runnable); } catch (Exception e) { if (e instanceof InterruptedException) { Thread.currentThread().interrupt(); } ServletRequestContext.log.trace("Failure of runnable " + runnable, e); } } }); } else { throw new RejectedExecutionException("Async not enabled currently for this servlet"); } }
break; case 300: // FINEST trace(msg, t); break;
break; case 300: // FINEST trace(msg, t); break;