java.lang.Object
com.sun.nio.sctp.SendFailedNotification
- 所有已实现的接口:
Notification
收到发送失败通知时发出的通知。
发送失败通知表示无法传递消息。通常这是因为关联已关闭,套接字输出缓冲区中有未发送的数据,或者在 SctpMultiChannel 的情况下关联无法设置。
- 自从:
- 1.7
-
构造方法总结
构造方法 -
方法总结
修饰符和类型方法描述abstract SocketAddressaddress()返回地址。abstract Association返回此通知适用的关联。abstract ByteBufferbuffer()返回要发送的数据。abstract int返回错误代码。abstract int返回要发送消息的流号。
-
构造方法详细信息
-
SendFailedNotification
protected SendFailedNotification()初始化此类的新实例。
-
-
方法详情
-
association
返回此通知适用的关联。- 指定者:
association在接口Notification中- 返回:
-
发送失败的关联,如果没有关联则为
null,即通知跟随一个AssociationChangeNotification.AssocChangeEvent.CANT_START
-
address
返回地址。- 返回:
- 关联的对等主地址或消息发送到的地址
-
buffer
返回要发送的数据。- 返回:
-
用户数据。缓冲区位置将为
0,其限制将设置为数据末尾。
-
errorCode
public abstract int errorCode()返回错误代码。errorCode 给出发送失败的原因,如果设置,将是 RFC2960 第 3.3.10 节中定义的 SCTP 协议错误代码
- 返回:
- 错误代码
-
streamNumber
public abstract int streamNumber()返回要发送消息的流号。- 返回:
- 流号
-