public class NetBIOSSelector
extends java.lang.Object
Selector type class for NetBIOSSocket objects. Groups a set of sockets to wait for events on.
Constructor and Description |
---|
NetBIOSSelector()
Default constructor
|
NetBIOSSelector(int initSize)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the NetBIOS selector
|
NetBIOSSelectionKey |
deregisterSocket(NetBIOSSocket socket)
Remove a socket from this selector
|
NetBIOSSelectionKey |
getSelectionKey(java.lang.Integer key)
Return the selection key for the specified key
|
java.util.Set |
keys()
Return the full selection key list
|
protected NetBIOSSelectionKey |
registerSocket(NetBIOSSocket socket,
int ops)
Register a socket with this selector
|
int |
select()
Wait for events to trigger on one or more sockets
|
java.util.Set |
selectedKeys()
Return the selected keys from the last select
|
public NetBIOSSelector()
public NetBIOSSelector(int initSize)
initSize
- intprotected final NetBIOSSelectionKey registerSocket(NetBIOSSocket socket, int ops) throws java.io.IOException, java.nio.channels.IllegalBlockingModeException
socket
- NetBIOSSocketops
- intjava.io.IOException
IllegalblockingModeException
java.nio.channels.IllegalBlockingModeException
public final NetBIOSSelectionKey deregisterSocket(NetBIOSSocket socket) throws java.io.IOException
socket
- NetBIOSSocketjava.io.IOException
public final int select() throws WinsockNetBIOSException
WinsockNetBIOSException
public final void close()
public final java.util.Set keys()
public final NetBIOSSelectionKey getSelectionKey(java.lang.Integer key)
key
- Integerpublic final java.util.Set selectedKeys()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.