com.github.andyshao.io.TcpClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Gear Show documentation
Show all versions of Gear Show documentation
Enhance and formating the coding of JDK
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