org.activeio.net
Class NIOSyncChannelFactory
java.lang.Object
org.activeio.net.NIOSyncChannelFactory
- All Implemented Interfaces:
- SyncChannelFactory
- public class NIOSyncChannelFactory
- extends Object
- implements SyncChannelFactory
A TcpSynchChannelFactory creates org.activeio.net.TcpSynchChannel
and org.activeio.net.TcpSynchChannelServer
objects.
- Version:
- $Revision$
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_BUFFER_SIZE
protected static final int DEFAULT_BUFFER_SIZE
DEFAULT_BACKLOG
protected static final int DEFAULT_BACKLOG
- See Also:
- Constant Field Values
NIOSyncChannelFactory
public NIOSyncChannelFactory()
NIOSyncChannelFactory
public NIOSyncChannelFactory(boolean createWriteBufferedChannels)
openSyncChannel
public SyncChannel openSyncChannel(URI location)
throws IOException
- Uses the 's host and port to create a tcp connection to a remote host.
- Specified by:
openSyncChannel
in interface SyncChannelFactory
- Parameters:
location
-
- Returns:
-
- Throws:
IOException
- See Also:
org.activeio.SynchChannelFactory#openSynchChannel(java.net.URI)
createSynchChannel
protected SyncChannel createSynchChannel(SocketChannel socketChannel)
throws IOException
- Returns:
-
- Throws:
IOException
bindSyncChannel
public SyncChannelServer bindSyncChannel(URI bindURI)
throws IOException
- Binds a server socket a the 's port.
- Specified by:
bindSyncChannel
in interface SyncChannelFactory
- Parameters:
bindURI
-
- Returns:
-
- Throws:
IOException
- See Also:
org.activeio.SynchChannelFactory#bindSynchChannel(java.net.URI)
getBacklog
public int getBacklog()
- Returns:
- Returns the backlog.
setBacklog
public void setBacklog(int backlog)
- Parameters:
backlog
- The backlog to set.
Copyright © -2007 The ActiveIO Project. All Rights Reserved.