com.epam.common.transport.client
Interface ClientTransport

All Superinterfaces:
Transport
All Known Implementing Classes:
NIOTCPTransport, SSLTCPTransport, TCPTransport, UDPTransport

public interface ClientTransport
extends Transport

Client transport interface. Describes contract of server configuration.


Method Summary
 int read(ByteBuffer buffer)
           
 int read(ByteBuffer buffer, int offset, int length)
           
 void setAddress(String host)
          Setter for address.
 void setPort(int port)
          Setter for port.
 void setSocketFactory(SocketFactory socketFactory)
           
 int write(ByteBuffer buffer)
           
 int write(ByteBuffer buffer, int offset, int length)
           
 
Methods inherited from interface com.epam.common.transport.Transport
close, getAddress, getPort, isBlockingSocket, isOpen, open, read, read, waitUntilReadyToWrite, write, write
 

Method Detail

setAddress

void setAddress(String host)
Setter for address.

Parameters:
host -

setPort

void setPort(int port)
Setter for port.

Parameters:
port -

write

int write(ByteBuffer buffer)
          throws IOException
Specified by:
write in interface Transport
Throws:
IOException

write

int write(ByteBuffer buffer,
          int offset,
          int length)
          throws IOException
Specified by:
write in interface Transport
Throws:
IOException

read

int read(ByteBuffer buffer,
         int offset,
         int length)
         throws IOException
Specified by:
read in interface Transport
Throws:
IOException

read

int read(ByteBuffer buffer)
         throws IOException
Specified by:
read in interface Transport
Throws:
IOException

setSocketFactory

void setSocketFactory(SocketFactory socketFactory)


Copyright © 2000-2014 EPAM Systems. All Rights Reserved.