Package org.jgroups.blocks.cs
Interface Client
public interface Client
Defines common operations for clients (TCP or NIO)
- Since:
- 3.6.5
-
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidsend(byte[] data, int offset, int length) Sends data to the remote server.voidsend(ByteBuffer data) Sends data to the remote server.
-
Method Details
-
localAddress
Address localAddress() -
remoteAddress
Address remoteAddress() -
isConnected
boolean isConnected() -
send
Sends data to the remote server. The server's address must have been set before.- Throws:
Exception
-
send
Sends data to the remote server. The server's address must have been set before.- Throws:
Exception
-