org.zodiac.sdk.nio.channeling.ChannelingSSL Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zodiac-sdk-nio Show documentation
Show all versions of zodiac-sdk-nio Show documentation
Zodiac SDK NIO2(New Non-Blocking IO)
package org.zodiac.sdk.nio.channeling;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.function.Consumer;
public interface ChannelingSSL {
void connect(Consumer status, Consumer error) throws IOException;
void write(byte[] message, Consumer status, Consumer error) throws IOException;
void read(Consumer status, Consumer error) throws IOException;
void read(int size, Consumer status, Consumer error) throws IOException;
void close(Consumer consumer, Consumer error) throws IOException;
}