barchart-udt-core
2.3.0-SNAPSHOT / 2013-05-13T01:37:38.485-0500

com.barchart.udt.nio
Class SelectorProviderUDT

java.lang.Object
  extended by java.nio.channels.spi.SelectorProvider
      extended by com.barchart.udt.nio.SelectorProviderUDT

public class SelectorProviderUDT
extends SelectorProvider

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

DATAGRAM

public static final SelectorProviderUDT DATAGRAM
system-wide provider instance, for TypeUDT.DATAGRAM UDT sockets


STREAM

public static final SelectorProviderUDT STREAM
system-wide provider instance, for TypeUDT.STREAM UDT sockets

Constructor Detail

SelectorProviderUDT

protected SelectorProviderUDT(TypeUDT type)
Method Detail

from

public static SelectorProviderUDT from(TypeUDT type)

type

public final TypeUDT type()
TypeUDT of UDT sockets generated by this provider


getAcceptQueueSize

public int getAcceptQueueSize()

getMaxSelectorSize

public int getMaxSelectorSize()

openDatagramChannel

public DatagramChannel openDatagramChannel()
                                    throws IOException
Not supported.

Specified by:
openDatagramChannel in class SelectorProvider
Throws:
IOException

openPipe

public Pipe openPipe()
              throws IOException
Not supported.

Specified by:
openPipe in class SelectorProvider
Throws:
IOException

openRendezvousChannel

public RendezvousChannelUDT openRendezvousChannel()
                                           throws IOException
Open UDT KindUDT.RENDEZVOUS socket channel.

Throws:
IOException
See Also:
RendezvousChannelUDT

openSelector

public SelectorUDT openSelector()
                         throws IOException
Open UDT specific selector.

Specified by:
openSelector in class SelectorProvider
Throws:
IOException
See Also:
SelectorUDT

openServerSocketChannel

public ServerSocketChannelUDT openServerSocketChannel()
                                               throws IOException
Open UDT KindUDT.ACCEPTOR socket channel.

Specified by:
openServerSocketChannel in class SelectorProvider
Throws:
IOException
See Also:
ServerSocketChannelUDT

openSocketChannel

public SocketChannelUDT openSocketChannel()
                                   throws IOException
Open UDT KindUDT.CONNECTOR socket channel.

Specified by:
openSocketChannel in class SelectorProvider
Throws:
IOException
See Also:
SocketChannelUDT

setAcceptQueueSize

public void setAcceptQueueSize(int queueSize)

setMaxSelectorSize

public void setMaxSelectorSize(int selectorSize)

barchart-udt-core
2.3.0-SNAPSHOT / 2013-05-13T01:37:38.485-0500

Copyright © 2009-2013 Barchart, Inc.. All Rights Reserved.