@Deprecated(since="14", forRemoval=true) public class SocketFlow extends ObjectDeprecated, for removal: This API element is subject to removal in a future version.
Represents the service level properties for the platform specific socket option
ExtendedSocketOptions.SO_FLOW_SLA
.
The priority and bandwidth parameters must be set before setting the socket option.
When the SO_FLOW_SLA
option is set then it may not take effect immediately. If the value of the socket option is obtained with getOption()
then the status may be returned as INPROGRESS
until it takes effect. The priority and bandwidth values are only valid when the status is returned as OK.
When a security manager is installed, a NetworkPermission
is required to set or get this option.
static class
SocketFlow.Status
Deprecated, for removal: This API element is subject to removal in a future version.static int
HIGH_PRIORITY
Deprecated, for removal: This API element is subject to removal in a future version.
static int
NORMAL_PRIORITY
Deprecated, for removal: This API element is subject to removal in a future version.
static int
UNSET
Deprecated, for removal: This API element is subject to removal in a future version.
long
bandwidth()
Deprecated, for removal: This API element is subject to removal in a future version.
Returns this SocketFlow's bandwidth.
SocketFlow
bandwidth(long bandwidth)
Deprecated, for removal: This API element is subject to removal in a future version.
Sets this SocketFlow's bandwidth.
static SocketFlow
create()
Deprecated, for removal: This API element is subject to removal in a future version.
Creates a new SocketFlow that can be used to set the SO_FLOW_SLA socket option and create a socket flow.
int
priority()
Deprecated, for removal: This API element is subject to removal in a future version.
Returns this SocketFlow's priority.
SocketFlow
priority(int priority)
Deprecated, for removal: This API element is subject to removal in a future version.
Sets this SocketFlow's priority.
SocketFlow.Status
status()
Deprecated, for removal: This API element is subject to removal in a future version.
Returns the Status value of this SocketFlow.
Methods declared in class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Deprecated, for removal: This API element is subject to removal in a future version.
Deprecated, for removal: This API element is subject to removal in a future version.
Deprecated, for removal: This API element is subject to removal in a future version.
Deprecated, for removal: This API element is subject to removal in a future version.
Creates a new SocketFlow that can be used to set the SO_FLOW_SLA socket option and create a socket flow.
Deprecated, for removal: This API element is subject to removal in a future version.
Sets this SocketFlow's priority. Must be either NORMAL_PRIORITY HIGH_PRIORITY. If not set, a flow's priority is normal.
IllegalArgumentException
- if priority is not NORMAL_PRIORITY or HIGH_PRIORITY.
Deprecated, for removal: This API element is subject to removal in a future version.
Sets this SocketFlow's bandwidth. Must be greater than or equal to zero. A value of zero drops all packets for the socket.
IllegalArgumentException
- if bandwidth is less than zero.
public int priority()
Deprecated, for removal: This API element is subject to removal in a future version.
Returns this SocketFlow's priority.
public long bandwidth()
Deprecated, for removal: This API element is subject to removal in a future version.
Returns this SocketFlow's bandwidth.
-1
if status is not OK.
Deprecated, for removal: This API element is subject to removal in a future version.
Returns the Status value of this SocketFlow. NO_STATUS is returned if the object was not used in a call to set or get the option.
Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2020, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.3