Examples and docs say:
- Create a HTTPClient "A client should create one instance of this class."[0]
- Create a Payload
- Create a HandlerMaker
- Call client.apply(payload, handlermaker)
use "collections" | |
use "net" | |
actor Main | |
new create(env: Env) => | |
let item = Settings.create("localhost", 5554) | |
let s = ServerRef.create(item) | |
s.connect(env, Listener.create(s)) |
private static enum DBColumnTypes { | |
BOOL(1) { | |
@Override public void process(Args arguments) { | |
// do stuff here that you would otherwise do in the switch block | |
} | |
}, | |
; | |