Thread pools on the JVM should usually be divided into the following three categories:
- CPU-bound
- Blocking IO
- Non-blocking IO polling
Each of these categories has a different optimal configuration and usage pattern.
window.HAL = {} | |
class HAL.Model extends Backbone.Model | |
constructor: (attrs) -> | |
super @parse(_.clone attrs) | |
parse: (attrs = {}) -> | |
@links = attrs._links || {} | |
delete attrs._links | |
@embedded = attrs._embedded || {} |
package com.silverchalice.cors; | |
import java.io.IOException; | |
import javax.servlet.Filter; | |
import javax.servlet.FilterChain; | |
import javax.servlet.FilterConfig; | |
import javax.servlet.ServletException; | |
import javax.servlet.ServletRequest; | |
import javax.servlet.ServletResponse; |
module['exports'] = function echoHttp (hook) { | |
hook.debug("Debug messages are sent to the debug console"); | |
hook.debug(hook.params); | |
hook.debug(hook.req.path); | |
hook.debug(hook.req.method); |