@Deprecated public final class APIProperties extends Object
In a server environment (i.e. a Publisher) this provides access to variables that are specified in property files and these values can not be changed.
In a non server environment this would return default values and these values may be changed (this usually must be done before any other API calls).
Modifier and Type | Field and Description |
---|---|
static String |
UTF8
Deprecated.
use
Utils.UTF8 |
Modifier and Type | Method and Description |
---|---|
static int |
getMaximumMessageSize()
Deprecated.
since 5.0; use
RootConfig.getMaximumMessageSize() |
static int |
getNumberOfAcceptors()
Deprecated.
|
static String |
getProductVersion()
Deprecated.
|
static int |
getProtocolVersion()
Deprecated.
|
static void |
setNumberOfAcceptors(int acceptors)
Deprecated.
|
@Deprecated public static final String UTF8
Utils.UTF8
@Deprecated public static int getMaximumMessageSize()
RootConfig.getMaximumMessageSize()
From 5.2, this always returns the
configured
value.
@Deprecated public static String getProductVersion()
Utils.getProductVersion()
@Deprecated public static int getProtocolVersion()
Utils.getProtocolVersion()
@Deprecated public static int getNumberOfAcceptors()
RootConfig.getNumberOfReadSelectors()
@Deprecated public static void setNumberOfAcceptors(int acceptors) throws PropertyException
RootConfig.setNumberOfReadSelectors(int)
acceptors
- the number of acceptorsPropertyException
- if the specified number is invalidCopyright © 2016 Push Technology Ltd. All Rights Reserved.