| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final RuntimePermission | |
| pack-priv static final InetSocketAddress | |
| pack-priv static final LocalSocketAddress | |
| private static final ThreadLocal | |
| private static final EnumMap | |
| private final String | name
The name of this provider instance. |
| public static final boolean | NIO2
A flag indicating the presence of NIO.2 (JDK 7). |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | Returns: the previous settingtrue to allow blocking I/O, false to disallow itAllow (or disallow) blocking I/O on the current thread. |
| protected abstract XnioWorker | Returns: the constructed workerthe builder (must not be buildernull)Construct an XNIO worker from a builder. |
| public static void | |
| public FileSystemWatcher | Returns: The file system watcherThe watcher name name, final OptionMap The options to use to create the watcher options)Creates a file system watcher, that can be used to monitor file system changes. |
| public XnioWorker | Returns: the new workerthe options to use to configure the worker optionMap)Construct a new XNIO worker. |
| public XnioWorker | Returns: the new workerthe thread group for worker threads threadGroup, OptionMap the options to use to configure the worker optionMap)Construct a new XNIO worker. |
| public XnioWorker | Returns: the new workerthe thread group for worker threads threadGroup, OptionMap the options to use to configure the worker optionMap, Runnable the task to run after the worker has shut down terminationTask)Construct a new XNIO worker. |
| public XnioWorker. | |
| private static synchronized Xnio | |
| public static Xnio | Returns: the XNIO provider instancethe class loader to search in classLoader)Get an XNIO provider instance. |
| public static Xnio | Returns: the XNIO provider instanceGet an XNIO provider instance from XNIO's class loader. |
| public static Xnio | Returns: the XNIO provider instancethe provider name, or provider, final ClassLoader null for the first availablethe class loader to search in classLoader)Get a specific XNIO provider instance. |
| public static Xnio | Returns: the XNIO provider instancethe provider name, or provider)null for the first availableGet a specific XNIO provider instance from XNIO's class loader. |
| public final String | |
| protected static String | Returns: the property value, ornull if it wasn't foundthe property name name)Get an XNIO property. |
| protected static String | Returns: the property value, ordefaultValue if it wasn't foundthe property name name, final String the default value defaultValue)Get an XNIO property. |
| public XnioSsl | Returns: the SSL providerthe option map to use for configuring SSL optionMap)Get an SSL provider for this XNIO provider. |
| public XnioSsl | Returns: the SSL providerthe key managers to use, or keyManagers, final TrustManager[] null to configure from the option mapthe trust managers to use, or trustManagers, final OptionMap null to configure from the option mapthe option map to use for configuring SSL optionMap)Get an SSL provider for this XNIO provider. |
| protected void | handleThreadExit()
Implement tasks that will be executed on thread exits if a task worker
thread is initialized through |
| public static boolean | Returns: true if blocking I/O is allowed, false otherwiseDetermine whether blocking I/O is allowed from the current thread. |
| public FileChannel | |
| public FileChannel | |
| public FileChannel | Returns: the file channelthe file to open file, FileAccess the file access level to use access)Open a file on the filesystem. |
| public FileChannel | Returns: the file channelthe file name of the file to open fileName, FileAccess the file access level to use access)Open a file on the filesystem. |
| protected static Closeable | Returns: a handle which may be used to remove the registrationthe provider MBean to register providerMXBean)Register an MBean. |
| protected static Closeable | Returns: a handle which may be used to remove the registrationthe worker MBean to register workerMXBean)Register an MBean. |
| protected static Closeable | Returns: a handle which may be used to remove the registrationthe server MBean to register serverMXBean)Register an MBean. |
| public final String | Returns: the string representationOverrides java. Get a string representation of this XNIO provider. |
| protected FileChannel | Returns: the unwrapped file channelthe possibly wrapped file channel src)Unwrap an XNIO-wrapped file channel. |
| ALLOW_BLOCKING_SETTING | back to summary |
|---|---|
| private static final RuntimePermission ALLOW_BLOCKING_SETTING | |
| ANY_INET_ADDRESS | back to summary |
|---|---|
| pack-priv static final InetSocketAddress ANY_INET_ADDRESS | |
| ANY_LOCAL_ADDRESS | back to summary |
|---|---|
| pack-priv static final LocalSocketAddress ANY_LOCAL_ADDRESS | |
| BLOCKING | back to summary |
|---|---|
| private static final ThreadLocal<Boolean> BLOCKING | |
| FILE_ACCESS_OPTION_MAPS | back to summary |
|---|---|
| private static final EnumMap<FileAccess, OptionMap> FILE_ACCESS_OPTION_MAPS | |
| name | back to summary |
|---|---|
| private final String name The name of this provider instance. | |
| NIO2 | back to summary |
|---|---|
| public static final boolean NIO2 A flag indicating the presence of NIO.2 (JDK 7). Always | |
| Xnio | back to summary |
|---|---|
| protected Xnio(String name) Construct an XNIO provider instance. Used by implementors only. To get an XNIO instance,
use one of the
| |
| allowBlocking | back to summary |
|---|---|
| public static boolean allowBlocking(boolean newSetting) throws SecurityException Allow (or disallow) blocking I/O on the current thread. Requires the
| |
| build | back to summary |
|---|---|
| protected abstract XnioWorker build(XnioWorker. Construct an XNIO worker from a builder.
| |
| checkBlockingAllowed | back to summary |
|---|---|
| public static void checkBlockingAllowed() throws IllegalStateException Perform a check for whether blocking is allowed on the current thread.
| |
| createFileSystemWatcher | back to summary |
|---|---|
| public FileSystemWatcher createFileSystemWatcher(final String name, final OptionMap options) Creates a file system watcher, that can be used to monitor file system changes.
| |
| createWorker | back to summary |
|---|---|
| public XnioWorker createWorker(OptionMap optionMap) throws IOException, IllegalArgumentException Construct a new XNIO worker.
| |
| createWorker | back to summary |
|---|---|
| public XnioWorker createWorker(ThreadGroup threadGroup, OptionMap optionMap) throws IOException, IllegalArgumentException Construct a new XNIO worker.
| |
| createWorker | back to summary |
|---|---|
| public XnioWorker createWorker(ThreadGroup threadGroup, OptionMap optionMap, Runnable terminationTask) throws IOException, IllegalArgumentException Construct a new XNIO worker.
| |
| createWorkerBuilder | back to summary |
|---|---|
| public XnioWorker. Create a new worker builder.
| |
| doGetInstance | back to summary |
|---|---|
| private static synchronized Xnio doGetInstance(final String provider, final ServiceLoader<XnioProvider> serviceLoader) | |
| getInstance | back to summary |
|---|---|
| public static Xnio getInstance(final ClassLoader classLoader) Get an XNIO provider instance. If multiple providers are available, use the first one encountered.
| |
| getInstance | back to summary |
|---|---|
| public static Xnio getInstance() Get an XNIO provider instance from XNIO's class loader. If multiple providers are available, use the first one encountered.
| |
| getInstance | back to summary |
|---|---|
| public static Xnio getInstance(String provider, final ClassLoader classLoader) Get a specific XNIO provider instance.
| |
| getInstance | back to summary |
|---|---|
| public static Xnio getInstance(String provider) Get a specific XNIO provider instance from XNIO's class loader. | |
| getName | back to summary |
|---|---|
| public final String getName() Get the name of this XNIO provider.
| |
| getProperty | back to summary |
|---|---|
| protected static String getProperty(final String name) Get an XNIO property. The property name must start with | |
| getProperty | back to summary |
|---|---|
| protected static String getProperty(final String name, final String defaultValue) Get an XNIO property. The property name must start with | |
| getSslProvider | back to summary |
|---|---|
| public XnioSsl getSslProvider(final OptionMap optionMap) throws GeneralSecurityException Get an SSL provider for this XNIO provider.
| |
| getSslProvider | back to summary |
|---|---|
| public XnioSsl getSslProvider(final KeyManager[] keyManagers, final TrustManager[] trustManagers, final OptionMap optionMap) throws GeneralSecurityException Get an SSL provider for this XNIO provider.
| |
| handleThreadExit | back to summary |
|---|---|
| protected void handleThreadExit() Implement tasks that will be executed on thread exits if a task worker
thread is initialized through | |
| isBlockingAllowed | back to summary |
|---|---|
| public static boolean isBlockingAllowed() Determine whether blocking I/O is allowed from the current thread.
| |
| openFile | back to summary |
|---|---|
| public FileChannel openFile(File file, OptionMap options) throws IOException Open a file on the filesystem.
| |
| openFile | back to summary |
|---|---|
| public FileChannel openFile(String fileName, OptionMap options) throws IOException Open a file on the filesystem.
| |
| openFile | back to summary |
|---|---|
| public FileChannel openFile(File file, FileAccess access) throws IOException Open a file on the filesystem.
| |
| openFile | back to summary |
|---|---|
| public FileChannel openFile(String fileName, FileAccess access) throws IOException Open a file on the filesystem.
| |
| register | back to summary |
|---|---|
| protected static Closeable register(XnioProviderMXBean providerMXBean) Register an MBean. If the MBean cannot be registered, this method will simply return.
| |
| register | back to summary |
|---|---|
| protected static Closeable register(XnioWorkerMXBean workerMXBean) Register an MBean. If the MBean cannot be registered, this method will simply return.
| |
| register | back to summary |
|---|---|
| protected static Closeable register(XnioServerMXBean serverMXBean) Register an MBean. If the MBean cannot be registered, this method will simply return.
| |
| toString | back to summary |
|---|---|
| public final String toString() Overrides java. Get a string representation of this XNIO provider.
| |
| unwrapFileChannel | back to summary |
|---|---|
| protected FileChannel unwrapFileChannel(FileChannel src) Unwrap an XNIO-wrapped file channel. For use by providers.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final ObjectName |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements java. Closes this stream and releases any system resources associated with it. |
| objectName | back to summary |
|---|---|
| private final ObjectName objectName | |
| MBeanCloseable | back to summary |
|---|---|
| pack-priv MBeanCloseable(final ObjectName objectName) | |
| close | back to summary |
|---|---|
| public void close() Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in | |
| Modifier and Type | Field and Description |
|---|---|
| private static final MBeanServer |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| MBEAN_SERVER | back to summary |
|---|---|
| private static final MBeanServer MBEAN_SERVER | |
| MBeanHolder | back to summary |
|---|---|
| pack-priv MBeanHolder() | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static Xnio |
| OsgiSupport | back to summary |
|---|---|
| pack-priv OsgiSupport() | |
| doGetOsgiService | back to summary |
|---|---|
| pack-priv static Xnio doGetOsgiService() | |