|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.bam.broker.AbstractBrokerStream
com.caucho.bam.broker.AbstractBroker
com.caucho.xmpp.XmppBrokerStream
@Module public class XmppBrokerStream
Protocol handler from the TCP/XMPP stream forwarding to the broker
| Method Summary | |
|---|---|
void |
close()
Close the Broker |
java.lang.String |
getAddress()
Returns the broker's address, i.e. |
Mailbox |
getBrokerMailbox()
Returns a mailbox to the broker itself |
Mailbox |
getMailbox(java.lang.String address)
Returns the actor stream for the given address. |
boolean |
isClosed()
Returns true if the broker has been closed |
void |
message(java.lang.String to,
java.lang.String from,
java.io.Serializable value)
Handles a message |
void |
messageError(java.lang.String to,
java.lang.String from,
java.io.Serializable value,
BamError error)
Handles a message |
void |
onDisconnect(SocketLinkDuplexController context)
Called when the connection closes |
void |
onRead(SocketLinkDuplexController context)
Called when read data is available |
void |
onStart(SocketLinkDuplexController context)
Called when the connection is established |
void |
onTimeout(SocketLinkDuplexController context)
Called when the connection times out |
void |
query(long id,
java.lang.String to,
java.lang.String from,
java.io.Serializable value)
Handles a get query. |
void |
queryError(long id,
java.lang.String to,
java.lang.String from,
java.io.Serializable value,
BamError error)
Handles a query error. |
void |
queryResult(long id,
java.lang.String to,
java.lang.String from,
java.io.Serializable value)
Handles a query result. |
boolean |
serviceWrite(WriteStream os,
SocketLinkDuplexController controller)
|
java.lang.String |
toString()
|
| Methods inherited from class com.caucho.bam.broker.AbstractBroker |
|---|
addMailbox, getBroker, removeMailbox |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.caucho.bam.broker.Broker |
|---|
addMailbox, removeMailbox |
| Methods inherited from interface com.caucho.bam.stream.MessageStream |
|---|
getBroker |
| Method Detail |
|---|
public java.lang.String getAddress()
AbstractBroker
getAddress in interface MessageStreamgetAddress in class AbstractBroker
public void onRead(SocketLinkDuplexController context)
throws java.io.IOException
SocketLinkDuplexListener
onRead in interface SocketLinkDuplexListenerjava.io.IOException
public void onDisconnect(SocketLinkDuplexController context)
throws java.io.IOException
SocketLinkDuplexListener
onDisconnect in interface SocketLinkDuplexListenerjava.io.IOException
public void onTimeout(SocketLinkDuplexController context)
throws java.io.IOException
SocketLinkDuplexListener
onTimeout in interface SocketLinkDuplexListenerjava.io.IOException
public boolean serviceWrite(WriteStream os,
SocketLinkDuplexController controller)
throws java.io.IOException
java.io.IOException
public void message(java.lang.String to,
java.lang.String from,
java.io.Serializable value)
message in interface MessageStreammessage in class AbstractBrokerStreamto - the target actor's addressfrom - the source actor's addressvalue - the message payload
public void messageError(java.lang.String to,
java.lang.String from,
java.io.Serializable value,
BamError error)
messageError in interface MessageStreammessageError in class AbstractBrokerStreamto - the target actor's addressfrom - the source actor's addressvalue - the original message payloaderror - the message error
public void query(long id,
java.lang.String to,
java.lang.String from,
java.io.Serializable value)
query in interface MessageStreamquery in class AbstractBrokerStreamid - the query identifier used to match requests with responsesto - the service actor's addressfrom - the client actor's addressvalue - the query payload
public void queryResult(long id,
java.lang.String to,
java.lang.String from,
java.io.Serializable value)
queryResult in interface MessageStreamqueryResult in class AbstractBrokerStreamid - the query identifier used to match requests with responsesto - the client actor's addressfrom - the service actor's addressvalue - the result payload
public void queryError(long id,
java.lang.String to,
java.lang.String from,
java.io.Serializable value,
BamError error)
queryError in interface MessageStreamqueryError in class AbstractBrokerStreamid - the query identifier used to match requests with responsesto - the client actor's addressfrom - the service actor's addressvalue - the result payloaderror - additional error informationpublic boolean isClosed()
AbstractBroker
isClosed in interface MessageStreamisClosed in class AbstractBrokerpublic void close()
Broker
close in interface Brokerclose in class AbstractBrokerpublic java.lang.String toString()
toString in class AbstractBrokerStream
public void onStart(SocketLinkDuplexController context)
throws java.io.IOException
SocketLinkDuplexListener
onStart in interface SocketLinkDuplexListenerjava.io.IOExceptionpublic Mailbox getBrokerMailbox()
AbstractBroker
getBrokerMailbox in interface BrokergetBrokerMailbox in class AbstractBrokerpublic Mailbox getMailbox(java.lang.String address)
AbstractBrokerStream
getMailbox in interface BrokergetMailbox in class AbstractBrokeraddress - the address of the mailbox
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||