|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.sgs.nio.channels.spi.AsynchronousChannelProvider
com.sun.sgs.impl.nio.AsyncProviderImpl
abstract class AsyncProviderImpl
Common base implementation of AsynchronousChannelProvider.
AsynchronousChannelGroup.
open()
methods, substituting the default group if appropriate.
Thread.UncaughtExceptionHandler.
| Constructor Summary | |
|---|---|
protected |
AsyncProviderImpl(SelectorProvider selProvider)
Creates an asynchronous channel provider using the given SelectorProvider. |
| Methods inherited from class com.sun.sgs.nio.channels.spi.AsynchronousChannelProvider |
|---|
provider |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AsyncProviderImpl(SelectorProvider selProvider)
SelectorProvider. If the parameter is {code null}, the
system default SelectorProvider will be used.
selProvider - the SelectorProvider, or null to
use the system default SelectorProviderSelectorProvider.provider()| Method Detail |
|---|
SelectorProvider selectorProvider()
SelectorProvider for this async provider.
SelectorProvider for this async providerprotected ThreadPoolFactory createDefaultThreadPoolFactory()
ThreadPoolFactory when none has been
specified by other mechanisms.
ThreadPoolFactory
public abstract AsyncGroupImpl openAsynchronousChannelGroup(ExecutorService executor)
throws IOException
openAsynchronousChannelGroup in class AsynchronousChannelProviderexecutor - the executor service
IOException - if an I/O error occurs
public AsyncDatagramChannelImpl openAsynchronousDatagramChannel(ProtocolFamily pf,
AsynchronousChannelGroup group)
throws IOException
openAsynchronousDatagramChannel in class AsynchronousChannelProviderpf - the protocol family, or null for the default protocol
familygroup - the group to which the channel is bound, or null
to bind to the default group
IOException - if an I/O error occurs
public AsyncServerSocketChannelImpl openAsynchronousServerSocketChannel(AsynchronousChannelGroup group)
throws IOException
openAsynchronousServerSocketChannel in class AsynchronousChannelProvidergroup - the group to which the channel is bound, or null
to bind to the default group
IOException - if an I/O error occurs
public AsyncSocketChannelImpl openAsynchronousSocketChannel(AsynchronousChannelGroup group)
throws IOException
openAsynchronousSocketChannel in class AsynchronousChannelProvidergroup - the group to which the channel is bound, or null
to bind to the default group
IOException - if an I/O error occurspublic Thread.UncaughtExceptionHandler getUncaughtExceptionHandler()
getUncaughtExceptionHandler in class AsynchronousChannelProvidernull if there is no default handlerpublic void setUncaughtExceptionHandler(Thread.UncaughtExceptionHandler eh)
setUncaughtExceptionHandler in class AsynchronousChannelProvidereh - the object to use as the default uncaught exception
handler, or null for no default handler
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||