|
barchart-udt-core 2.3.0-SNAPSHOT / 2013-05-13T01:37:38.485-0500 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.nio.channels.spi.SelectorProvider
com.barchart.udt.nio.SelectorProviderUDT
public class SelectorProviderUDT
selection provider for UDT
note: you must use the same system-wide provider instance for the same
TypeUDT of UDT channels and UDT selectors;
| Field Summary | |
|---|---|
static SelectorProviderUDT |
DATAGRAM
system-wide provider instance, for TypeUDT.DATAGRAM UDT sockets |
static SelectorProviderUDT |
STREAM
system-wide provider instance, for TypeUDT.STREAM UDT sockets |
| Constructor Summary | |
|---|---|
protected |
SelectorProviderUDT(TypeUDT type)
|
| Method Summary | |
|---|---|
static SelectorProviderUDT |
from(TypeUDT type)
|
int |
getAcceptQueueSize()
|
int |
getMaxSelectorSize()
|
DatagramChannel |
openDatagramChannel()
Not supported. |
Pipe |
openPipe()
Not supported. |
RendezvousChannelUDT |
openRendezvousChannel()
Open UDT KindUDT.RENDEZVOUS socket channel. |
SelectorUDT |
openSelector()
Open UDT specific selector. |
ServerSocketChannelUDT |
openServerSocketChannel()
Open UDT KindUDT.ACCEPTOR socket channel. |
SocketChannelUDT |
openSocketChannel()
Open UDT KindUDT.CONNECTOR socket channel. |
void |
setAcceptQueueSize(int queueSize)
|
void |
setMaxSelectorSize(int selectorSize)
|
TypeUDT |
type()
TypeUDT of UDT sockets generated by this provider |
| Methods inherited from class java.nio.channels.spi.SelectorProvider |
|---|
inheritedChannel, provider |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final SelectorProviderUDT DATAGRAM
TypeUDT.DATAGRAM UDT sockets
public static final SelectorProviderUDT STREAM
TypeUDT.STREAM UDT sockets
| Constructor Detail |
|---|
protected SelectorProviderUDT(TypeUDT type)
| Method Detail |
|---|
public static SelectorProviderUDT from(TypeUDT type)
public final TypeUDT type()
TypeUDT of UDT sockets generated by this provider
public int getAcceptQueueSize()
public int getMaxSelectorSize()
public DatagramChannel openDatagramChannel()
throws IOException
openDatagramChannel in class SelectorProviderIOException
public Pipe openPipe()
throws IOException
openPipe in class SelectorProviderIOException
public RendezvousChannelUDT openRendezvousChannel()
throws IOException
KindUDT.RENDEZVOUS socket channel.
IOExceptionRendezvousChannelUDT
public SelectorUDT openSelector()
throws IOException
openSelector in class SelectorProviderIOExceptionSelectorUDT
public ServerSocketChannelUDT openServerSocketChannel()
throws IOException
KindUDT.ACCEPTOR socket channel.
openServerSocketChannel in class SelectorProviderIOExceptionServerSocketChannelUDT
public SocketChannelUDT openSocketChannel()
throws IOException
KindUDT.CONNECTOR socket channel.
openSocketChannel in class SelectorProviderIOExceptionSocketChannelUDTpublic void setAcceptQueueSize(int queueSize)
public void setMaxSelectorSize(int selectorSize)
|
barchart-udt-core 2.3.0-SNAPSHOT / 2013-05-13T01:37:38.485-0500 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||