@Exported public class SocketFlow extends Object
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.
| Modifier and Type | Class and Description | 
|---|---|
| static class  | SocketFlow.StatusEnumeration of the return values from the SO_FLOW_SLA
 socket option. | 
| Modifier and Type | Field and Description | 
|---|---|
| static int | HIGH_PRIORITY | 
| static int | NORMAL_PRIORITY | 
| Modifier and Type | Method and Description | 
|---|---|
| long | bandwidth()Returns this SocketFlow's bandwidth. | 
| SocketFlow | bandwidth(long bandwidth)Sets this SocketFlow's bandwidth. | 
| static SocketFlow | create()Creates a new SocketFlow that can be used to set the SO_FLOW_SLA
 socket option and create a socket flow. | 
| int | priority()Returns this SocketFlow's priority. | 
| SocketFlow | priority(int priority)Sets this SocketFlow's priority. | 
| SocketFlow.Status | status()Returns the Status value of this SocketFlow. | 
@Native public static final int NORMAL_PRIORITY
@Native public static final int HIGH_PRIORITY
public static SocketFlow create()
public SocketFlow priority(int priority)
IllegalArgumentException - if priority is not NORMAL_PRIORITY or
         HIGH_PRIORITY.public SocketFlow bandwidth(long bandwidth)
IllegalArgumentException - if bandwidth is less than zero.public int priority()
public long bandwidth()
-1 if status is not OK.public SocketFlow.Status status()
 Copyright © 2014, 2017, Oracle and/or its affiliates.  All rights reserved.