20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25 package com.sun.nio.sctp;
26
27 import java.nio.ByteBuffer;
28 import java.net.SocketAddress;
29
30 /**
31 * Notification emitted when a send failed notification has been received.
32 *
33 * <P> A send failed notification indicates that a message cannot be delivered.
34 * Typically this is because the association has been shutdown with unsent data
35 * in the socket output buffer, or in the case of a {@link SctpMultiChannel}
36 * the association failed to setup.
37 *
38 * @since 1.7
39 */
40 public abstract class SendFailedNotification implements Notification {
41 /**
42 * Initializes a new instance of this class.
43 */
44 protected SendFailedNotification() {}
45
46 /**
47 * Returns the association that this notification is applicable to.
48 *
49 * @return The association that failed to send, or {@code null} if
50 * there is no association, that is, the notification follows a
51 * {@linkplain
52 * com.sun.nio.sctp.AssociationChangeNotification.AssocChangeEvent#CANT_START}
53 */
54 @Override
55 public abstract Association association();
56
57 /**
58 * Returns the address.
59 *
|
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25 package com.sun.nio.sctp;
26
27 import java.nio.ByteBuffer;
28 import java.net.SocketAddress;
29
30 /**
31 * Notification emitted when a send failed notification has been received.
32 *
33 * <P> A send failed notification indicates that a message cannot be delivered.
34 * Typically this is because the association has been shutdown with unsent data
35 * in the socket output buffer, or in the case of a {@link SctpMultiChannel}
36 * the association failed to setup.
37 *
38 * @since 1.7
39 */
40 @jdk.Supported
41 public abstract class SendFailedNotification implements Notification {
42 /**
43 * Initializes a new instance of this class.
44 */
45 protected SendFailedNotification() {}
46
47 /**
48 * Returns the association that this notification is applicable to.
49 *
50 * @return The association that failed to send, or {@code null} if
51 * there is no association, that is, the notification follows a
52 * {@linkplain
53 * com.sun.nio.sctp.AssociationChangeNotification.AssocChangeEvent#CANT_START}
54 */
55 @Override
56 public abstract Association association();
57
58 /**
59 * Returns the address.
60 *
|