wsky / top-push

Message-push abstraction component, provide useful messaging components.
8 stars 4 forks source link

what's new in v2.0 #47

Closed wsky closed 10 years ago

wsky commented 10 years ago
connector(I/O)    |    top-push             |   backend
onConnect      ----->  addConnection          
onDisconnect  -----> removeConnection
                       send  <------------------ send
// async send
client.send(msg, ordering, callback);
// for batch and send immediately
Sender sender = client.createSender();
sender.send();