public interface ExtendedMessageListener extends MessageListener
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)| Modifier and Type | Method and Description |
|---|---|
void |
getState(OutputStream ostream)
Allows an application to write a state through a provided OutputStream.
|
byte[] |
getState(String state_id)
Allows an application to provide a partial state as a byte array
|
void |
getState(String state_id,
OutputStream ostream)
Allows an application to write a partial state through a provided OutputStream.
|
void |
setState(InputStream istream)
Allows an application to read a state through a provided InputStream.
|
void |
setState(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(String state_id,
InputStream istream)
Allows an application to read a partial state through a provided InputStream.
|
getState, receive, setStatebyte[] getState(String state_id)
state_id - id of the partial state requestedvoid setState(String state_id, byte[] state)
state_id - id of the partial state requestedstate - partial state for the given state_idvoid getState(OutputStream ostream)
ostream - the OutputStreamOutputStream.close()void getState(String state_id, OutputStream ostream)
state_id - id of the partial state requestedostream - the OutputStreamOutputStream.close()void setState(InputStream istream)
istream - the InputStreamInputStream.close()void setState(String state_id, InputStream istream)
state_id - id of the partial state requestedistream - the InputStreamInputStream.close()Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.