public class HmtpWriter
extends java.lang.Object
Constructor and Description |
---|
HmtpWriter() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
java.lang.String |
getAddress()
The address of the stream
|
protected void |
init(java.io.OutputStream os) |
void |
message(java.io.OutputStream os,
java.lang.String to,
java.lang.String from,
java.io.Serializable payload)
Sends a message to a given address
|
void |
messageError(java.io.OutputStream os,
java.lang.String to,
java.lang.String from,
java.io.Serializable value,
BamError error)
Sends a message error to a given address
|
void |
query(java.io.OutputStream os,
long id,
java.lang.String to,
java.lang.String from,
java.io.Serializable value)
Low-level query
|
void |
queryError(java.io.OutputStream os,
long id,
java.lang.String to,
java.lang.String from,
java.io.Serializable value,
BamError error)
Low-level query error
|
void |
queryResult(java.io.OutputStream os,
long id,
java.lang.String to,
java.lang.String from,
java.io.Serializable value)
Low-level query response
|
void |
setAddress(java.lang.String address)
The address of the stream
|
java.lang.String |
toString() |
protected void init(java.io.OutputStream os)
public java.lang.String getAddress()
public void setAddress(java.lang.String address)
public void message(java.io.OutputStream os, java.lang.String to, java.lang.String from, java.io.Serializable payload) throws java.io.IOException
os
- the output stream for the messageto
- the address of the target actorfrom
- the address of the source actorpayload
- the message payloadjava.io.IOException
public void messageError(java.io.OutputStream os, java.lang.String to, java.lang.String from, java.io.Serializable value, BamError error) throws java.io.IOException
java.io.IOException
public void query(java.io.OutputStream os, long id, java.lang.String to, java.lang.String from, java.io.Serializable value) throws java.io.IOException
java.io.IOException
public void queryResult(java.io.OutputStream os, long id, java.lang.String to, java.lang.String from, java.io.Serializable value) throws java.io.IOException
java.io.IOException
public void queryError(java.io.OutputStream os, long id, java.lang.String to, java.lang.String from, java.io.Serializable value, BamError error) throws java.io.IOException
java.io.IOException
public void flush() throws java.io.IOException
java.io.IOException
public void close()
public java.lang.String toString()
toString
in class java.lang.Object