All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.andyshao.io.TcpClient Maven / Gradle / Ivy

The newest version!
package com.github.andyshao.io;

import java.io.Closeable;
import java.io.IOException;

/**
 * 
 * Title:
* Descript:
* Copyright: Copryright(c) Nov 9, 2015
* Encoding:UNIX UTF-8 * * @author Andy.Shao * */ public interface TcpClient extends Closeable { @Override public abstract void close() throws IOException; /** * open the connection * @param context {@link MessageContext} * @throws IOException any IO error */ public abstract void open(MessageContext context) throws IOException; /** * send the message * @param context {@link MessageContext} * @throws IOException any IO error */ public abstract void send(MessageContext context) throws IOException; /** * send the message * @param context {@link MessageContext} * @param process {@link MessageProcess} * @throws IOException any IO error */ public abstract void send(MessageContext context , MessageProcess process) throws IOException; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy