public abstract class NioChannelBuilder extends ChannelBuilder
ChannelBuilder subtype for NioChannelHub.NioChannelHub.newChannelBuilder(String, ExecutorService)| Modifier and Type | Method and Description |
|---|---|
Channel |
build(SelectableChannel r,
SelectableChannel w) |
Channel |
build(Socket s) |
Channel |
build(SocketChannel socket) |
NioChannelBuilder |
withBaseLoader(ClassLoader base)
Specify the classloader used for deserializing remote commands.
|
NioChannelBuilder |
withCapability(Capability capability)
Controls the capabilities that we'll advertise to the other side.
|
NioChannelBuilder |
withClassFilter(ClassFilter filter)
Replaces the
ClassFilter used by the channel. |
NioChannelBuilder |
withHeaderStream(OutputStream header)
If non-null, receive the portion of data in is before
the data goes into the "binary mode".
|
NioChannelBuilder |
withJarCache(JarCache jarCache)
Sets the JAR cache storage.
|
NioChannelBuilder |
withMode(Channel.Mode mode)
The encoding to be used over the stream.
|
NioChannelBuilder |
withoutJarCache()
Resets JAR Cache setting to the default.
|
NioChannelBuilder |
withRestricted(boolean restricted)
For compatibility reasons, activates/disables all the security restriction features.
|
build, build, getBaseLoader, getCapability, getClassFilter, getDecorators, getExecutors, getHeaderStream, getJarCache, getMode, getName, getProperties, isArbitraryCallableAllowed, isRemoteClassLoadingAllowed, isRestricted, makeTransport, negotiate, with, withArbitraryCallableAllowed, withJarCacheOrDefault, withProperty, withProperty, withRemoteClassLoadingAllowed, withRoleChecker, withRoles, withRolespublic Channel build(SocketChannel socket) throws IOException
build in class ChannelBuilderIOExceptionpublic Channel build(SelectableChannel r, SelectableChannel w) throws IOException
IOExceptionpublic Channel build(Socket s) throws IOException
build in class ChannelBuilderIOExceptionpublic NioChannelBuilder withBaseLoader(ClassLoader base)
ChannelBuilderChannel.getRemoteProperty(Object). Sometimes two parties
communicate over a channel and pass objects around as properties, but those types might not be
visible from the classloader loading the Channel class. In such a case, specify a classloader
so that those classes resolve. If null, Channel.class.getClassLoader() is used.withBaseLoader in class ChannelBuilderpublic NioChannelBuilder withMode(Channel.Mode mode)
ChannelBuilderwithMode in class ChannelBuilderpublic NioChannelBuilder withCapability(Capability capability)
ChannelBuilderwithCapability in class ChannelBuilderpublic NioChannelBuilder withHeaderStream(OutputStream header)
ChannelBuilderwithHeaderStream in class ChannelBuilderpublic NioChannelBuilder withRestricted(boolean restricted)
ChannelBuilderwithRestricted in class ChannelBuilderpublic NioChannelBuilder withJarCache(JarCache jarCache)
ChannelBuilderwithJarCache in class ChannelBuilderjarCache - JAR Cache to be used. If a deprecated null value is passed,
the behavior will be determined by the Channel implementation.thispublic NioChannelBuilder withoutJarCache()
ChannelBuilderChannel implementation.withoutJarCache in class ChannelBuilderpublic NioChannelBuilder withClassFilter(ClassFilter filter)
ChannelBuilderClassFilter used by the channel.
By default, ClassFilter.DEFAULT is installed.withClassFilter in class ChannelBuilderCopyright © 2004–2018. All rights reserved.