- java.lang.Object
 -  
      
- java.lang.Enum<AssociationChangeNotification.AssocChangeEvent>
 -  
        
- com.sun.nio.sctp.AssociationChangeNotification.AssocChangeEvent
 
 
 
-  
        
       
- Enclosing class:
 - AssociationChangeNotification
 
public static enum AssociationChangeNotification.AssocChangeEvent extends Enum<AssociationChangeNotification.AssocChangeEvent>
定义关联发生的更改事件的类型。- 从以下版本开始:
 - 1.7
 
 
-  
        
       
-  
             
Enum Constant Summary
Enum Constants Enum Constant 描述 CANT_START协会未能设置。COMM_LOST该协会失败了。COMM_UP现在已准备好新的关联,并且可以与此对等方交换数据。RESTARTSCTP检测到对等体已重新启动。SHUTDOWN该协会优雅地关闭。 
-  
             
方法摘要
所有方法 静态方法 具体的方法 变量和类型 方法 描述 static AssociationChangeNotification.AssocChangeEventvalueOf(String name)返回具有指定名称的此类型的枚举常量。static AssociationChangeNotification.AssocChangeEvent[]values()按照声明的顺序返回一个包含此枚举类型常量的数组。 
 -  
             
 
-  
        
       
-  
             
Enum Constant Detail
-  
COMM_UP
public static final AssociationChangeNotification.AssocChangeEvent COMM_UP
现在已准备好新的关联,并且可以与此对等方交换数据。 
-  
COMM_LOST
public static final AssociationChangeNotification.AssocChangeEvent COMM_LOST
该协会失败了。 一系列SCTP发送失败通知将遵循此通知,每个未完成消息一个。 
-  
RESTART
public static final AssociationChangeNotification.AssocChangeEvent RESTART
SCTP检测到对等体已重新启动。 
-  
SHUTDOWN
public static final AssociationChangeNotification.AssocChangeEvent SHUTDOWN
该协会优雅地关闭。 
-  
CANT_START
public static final AssociationChangeNotification.AssocChangeEvent CANT_START
协会未能设置。 如果在非阻塞模式下在SctpMultiChannel上发送了消息,则SCTP发送失败通知将遵循此通知以获取未完成的消息。 
 -  
 
-  
             
方法详细信息
-  
values
public static AssociationChangeNotification.AssocChangeEvent[] values()
按照声明的顺序返回一个包含此枚举类型常量的数组。 此方法可用于迭代常量,如下所示:for (AssociationChangeNotification.AssocChangeEvent c : AssociationChangeNotification.AssocChangeEvent.values()) System.out.println(c);- 结果
 - 包含此枚举类型常量的数组,按声明的顺序排列
 
 
-  
valueOf
public static AssociationChangeNotification.AssocChangeEvent valueOf(String name)
返回具有指定名称的此类型的枚举常量。 该字符串必须与用于声明此类型中的枚举常量的标识符完全匹配。 (不允许使用无关的空白字符。)- 参数
 -  
              
name- 要返回的枚举常量的名称。 - 结果
 - 具有指定名称的枚举常量
 - 异常
 -  
              
IllegalArgumentException- 如果此枚举类型没有指定名称的常量 -  
              
NullPointerException- 如果参数为null 
 
 -  
 
 -