PDA

View Full Version : HMTP ActorStream simplification


ferg
12-10-2010, 02:17 AM
We've decided to simplify the HMTP ActorStream model by combining queryGet and querySet into a single query call and by splitting the ActorStream API into its own low-level package: com.caucho.bam.stream.

Now, HMTP is stripped to its essence: a one-way messaging call and a request-response query call. The new ActorStream looks like the following:


package com.caucho.bam.stream;

public interface ActorStream {
public String getJid();

public void message(String to, String from, Serializable payload);
public void messageError(String to, String from, Serializable payload, ActorError error);

public void query(long qId, String to, String from, Serializable payload);
public void queryResponse(long qId, String to, String from, Serializable payload);
public void queryError(long qId, String to, String from, Serializable payload, ActorError error);
}