|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ExtendedMessageListener
ExtendedMessageListener has additional callbacks for:
Application channels interested in using streaming state transfer, beside
implementing this interface, have to be configured with
STREAMING_STATE_TRANSFER protocol rather than the default
STATE_TRANSFER protocol.
Note:
This interface will be merged with MessageListener in 3.0 (API changes)
JChannel.getState(Address, long),
JChannel.getState(Address, String, long)| Method Summary | |
|---|---|
void |
getState(java.io.OutputStream ostream)
Allows an application to write a state through a provided OutputStream. |
byte[] |
getState(java.lang.String state_id)
Allows an application to provide a partial state as a byte array |
void |
getState(java.lang.String state_id,
java.io.OutputStream ostream)
Allows an application to write a partial state through a provided OutputStream. |
void |
setState(java.io.InputStream istream)
Allows an application to read a state through a provided InputStream. |
void |
setState(java.lang.String state_id,
byte[] state)
Allows an application to read a partial state indicated by state_id from a given state byte array parameter. |
void |
setState(java.lang.String state_id,
java.io.InputStream istream)
Allows an application to read a partial state through a provided InputStream. |
| Methods inherited from interface org.jgroups.MessageListener |
|---|
getState, receive, setState |
| Method Detail |
|---|
byte[] getState(java.lang.String state_id)
state_id - id of the partial state requested
void setState(java.lang.String state_id,
byte[] state)
state_id - id of the partial state requestedstate - partial state for the given state_idvoid getState(java.io.OutputStream ostream)
ostream - the OutputStreamOutputStream.close()
void getState(java.lang.String state_id,
java.io.OutputStream ostream)
state_id - id of the partial state requestedostream - the OutputStreamOutputStream.close()void setState(java.io.InputStream istream)
istream - the InputStreamInputStream.close()
void setState(java.lang.String state_id,
java.io.InputStream istream)
state_id - id of the partial state requestedistream - the InputStreamInputStream.close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||