Package com.barchart.udt.nio
Class SelectorProviderUDT
java.lang.Object
java.nio.channels.spi.SelectorProvider
com.barchart.udt.nio.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
FieldsModifier and TypeFieldDescriptionprivate intstatic final SelectorProviderUDTsystem-wide provider instance, forTypeUDT.DATAGRAMUDT socketsprivate intstatic final SelectorProviderUDTsystem-wide provider instance, forTypeUDT.STREAMUDT socketsprivate final TypeUDT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SelectorProviderUDTintintNot supported.openDatagramChannel(ProtocolFamily family) Protocol-family selection does not add datagram support to UDT.openPipe()Not supported.Open UDTKindUDT.RENDEZVOUSsocket channel.Open UDT specific selector.Open UDTKindUDT.ACCEPTORsocket channel.Open UDTKindUDT.CONNECTORsocket channel.voidsetAcceptQueueSize(int queueSize) voidsetMaxSelectorSize(int selectorSize) final TypeUDTtype()TypeUDTof UDT sockets generated by this providerMethods inherited from class java.nio.channels.spi.SelectorProvider
inheritedChannel, openServerSocketChannel, openSocketChannel, provider
-
Field Details
-
DATAGRAM
system-wide provider instance, forTypeUDT.DATAGRAMUDT sockets -
STREAM
system-wide provider instance, forTypeUDT.STREAMUDT sockets -
acceptQueueSize
private volatile int acceptQueueSize -
maxSelectorSize
private volatile int maxSelectorSize -
type
-
-
Constructor Details
-
SelectorProviderUDT
-
-
Method Details
-
from
-
type
TypeUDTof UDT sockets generated by this provider -
getAcceptQueueSize
public int getAcceptQueueSize() -
getMaxSelectorSize
public int getMaxSelectorSize() -
openDatagramChannel
Not supported.- Specified by:
openDatagramChannelin classSelectorProvider- Throws:
IOException
-
openDatagramChannel
Protocol-family selection does not add datagram support to UDT.- Specified by:
openDatagramChannelin classSelectorProvider- Throws:
IOException
-
openPipe
Not supported.- Specified by:
openPipein classSelectorProvider- Throws:
IOException
-
openRendezvousChannel
Open UDTKindUDT.RENDEZVOUSsocket channel.- Throws:
IOException- See Also:
-
openSelector
Open UDT specific selector.- Specified by:
openSelectorin classSelectorProvider- Throws:
IOException- See Also:
-
openServerSocketChannel
Open UDTKindUDT.ACCEPTORsocket channel.- Specified by:
openServerSocketChannelin classSelectorProvider- Throws:
IOException- See Also:
-
openSocketChannel
Open UDTKindUDT.CONNECTORsocket channel.- Specified by:
openSocketChannelin classSelectorProvider- Throws:
IOException- See Also:
-
setAcceptQueueSize
public void setAcceptQueueSize(int queueSize) -
setMaxSelectorSize
public void setMaxSelectorSize(int selectorSize)
-