Package org.teiid.net.socket
Class OioOjbectChannelFactory
- java.lang.Object
-
- org.teiid.net.socket.OioOjbectChannelFactory
-
- All Implemented Interfaces:
ObjectChannelFactory
public final class OioOjbectChannelFactory extends Object implements ObjectChannelFactory
-
-
Field Summary
Fields Modifier and Type Field Description static ThreadLocal<Long>
TIMEOUTS
-
Constructor Summary
Constructors Constructor Description OioOjbectChannelFactory(Properties props)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectChannel
createObjectChannel(HostInfo info)
int
getReceiveBufferSize()
int
getSendBufferSize()
int
getSoTimeout()
boolean
isConserveBandwidth()
void
setConserveBandwidth(boolean conserveBandwidth)
void
setMaxObjectSize(int maxObjectSize)
void
setReceiveBufferSize(int receiveBufferSize)
void
setSendBufferSize(int sendBufferSize)
void
setSoTimeout(int soTimeout)
-
-
-
Field Detail
-
TIMEOUTS
public static ThreadLocal<Long> TIMEOUTS
-
-
Constructor Detail
-
OioOjbectChannelFactory
public OioOjbectChannelFactory(Properties props)
-
-
Method Detail
-
createObjectChannel
public ObjectChannel createObjectChannel(HostInfo info) throws CommunicationException, IOException
- Specified by:
createObjectChannel
in interfaceObjectChannelFactory
- Throws:
CommunicationException
IOException
-
getSendBufferSize
public int getSendBufferSize()
-
setSendBufferSize
public void setSendBufferSize(int sendBufferSize)
-
getReceiveBufferSize
public int getReceiveBufferSize()
-
setReceiveBufferSize
public void setReceiveBufferSize(int receiveBufferSize)
-
isConserveBandwidth
public boolean isConserveBandwidth()
-
setConserveBandwidth
public void setConserveBandwidth(boolean conserveBandwidth)
-
setSoTimeout
public void setSoTimeout(int soTimeout)
-
setMaxObjectSize
public void setMaxObjectSize(int maxObjectSize)
-
getSoTimeout
public int getSoTimeout()
- Specified by:
getSoTimeout
in interfaceObjectChannelFactory
-
-