Check if the current thread is the request thread. @return true if the current thread is the request thread
()
| 1180 | * @return {@code true} if the current thread is the request thread |
| 1181 | */ |
| 1182 | @SuppressWarnings("deprecation") |
| 1183 | public boolean isRequestThread() { |
| 1184 | return Thread.currentThread().getId() == threadId; |
| 1185 | } |
| 1186 | |
| 1187 | // -------------------- Per-Request "notes" -------------------- |
| 1188 |