THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
public interface CommunicationListenerEx<T extends Serializable> extends EventListener { /** * @param nodeId Remote node id. * @param initMsg Init channel message. * @param channel Locally created channel endpoint. */ public void onChannelOpened(UUID nodeId, Message initMsg, Channel channel); } |
...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
/** * */ public interface TransmitSessionHandler { /** * @param nodeId The remote node id connected from. * @param sessionId The unique session id. */ public void begin(UUID nodeId, String sessionId); /** * @return The instance of read handler to process incoming data by chunks. */ public ChunkHandler chunkHandler(); /** * @return The intance of read handler to process incoming data like the {@link FileChannel} manner. */ public FileHandler fileHandler(); /** * The end of session transmission process. */ public void end(); /** * @param cause The cause of fail handling process. */ public void onException(Throwable cause); } |
...