-
- All Implemented Interfaces:
public class MuxServerSocketChannelFactoryIf supported by the runtime, initializes ServerSocketChannels which are capable of sharing their listening endpoints with multiple others like them.
-
-
Field Summary
Fields Modifier and Type Field Description public final static intSOCKET_CHANNEL_READ_TIMEOUTpublic final static StringSOCKET_REUSE_ADDRESS_PROPERTY_NAME
-
Method Summary
Modifier and Type Method Description static ServerSocketChannelopenAndBindServerSocketChannel(Map<String, Object> properties, SocketAddress endpoint, int backlog)Opens and binds a new ServerSocketChannelinstance.-
-
Method Detail
-
openAndBindServerSocketChannel
static ServerSocketChannel openAndBindServerSocketChannel(Map<String, Object> properties, SocketAddress endpoint, int backlog)
Opens and binds a new
ServerSocketChannelinstance.- Parameters:
properties- aMapof the values to be assigned to properties of the underlying ServerSocketChannel which is to actually listen on the specifiedendpoint.endpoint- the IP and port the new instance is to bind tobacklog- the requested maximum number of pending incoming connections to be queued.
-
-
-
-