public final class Capability extends Object implements Serializable
Channel
.
Each Channel
exposes its capability to Channel.getProperty(Object)
.
This mechanism allows two different versions of remoting.jar to talk to each other.
Channel.remoteCapability
,
Serialized FormModifier and Type | Field and Description |
---|---|
static Capability |
NONE |
Constructor and Description |
---|
Capability() |
Modifier and Type | Method and Description |
---|---|
boolean |
hasMimicException() |
static Capability |
read(InputStream is)
The opposite operation of
writePreamble(OutputStream) . |
boolean |
supportsChunking()
Supports chunking to designate a command boundary.
|
boolean |
supportsGreedyRemoteInputStream()
Does
RemoteInputStream supports greedy flag. |
boolean |
supportsMultiClassLoaderRPC()
Does this implementation supports multi-classloader serialization in
UserRequest ? |
boolean |
supportsPipeThrottling()
Does the implementation supports window size control over pipes?
|
boolean |
supportsPrefetch()
Does the implementation allow classes to be prefetched and JARs to be cached?
|
boolean |
supportsProxyWriter2_35()
Does
ProxyWriter supports proper throttling?
This flag is also used to check other improvements made in ProxyWriter at the same time. |
String |
toString() |
public static final Capability NONE
public boolean supportsMultiClassLoaderRPC()
UserRequest
?MultiClassLoaderSerializer
public boolean supportsPipeThrottling()
ProxyOutputStream
public boolean hasMimicException()
public boolean supportsChunking()
In this mode, the wire format of the data changes to:
ObjectOutputStream
ChunkHeader
public boolean supportsPrefetch()
public boolean supportsGreedyRemoteInputStream()
RemoteInputStream
supports greedy flag.public boolean supportsProxyWriter2_35()
ProxyWriter
supports proper throttling?
This flag is also used to check other improvements made in ProxyWriter at the same time.public static Capability read(InputStream is) throws IOException
writePreamble(OutputStream)
.IOException
Copyright © 2016. All rights reserved.