Top Description Inners Constructors Methods
com.sun.nio.sctp

public abstract Class AssociationChangeNotification

extends Object
implements Notification
Class Inheritance
All Implemented Interfaces
com.sun.nio.sctp.Notification
Known Direct Subclasses
sun.nio.ch.sctp.AssociationChange

Notification emitted when an association has either opened or closed.
Since
1.7

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
AssociationChangeNotification.AssocChangeEvent

Defines the type of change event that happened to the association.

Constructor Summary

AccessConstructor and Description
protected
AssociationChangeNotification()

Initializes a new instance of this class.

Method Summary

Modifier and TypeMethod and Description
public abstract Association

Returns:

The association whose state has changed, or null if there is no association, that is CANT_START
association
()

Redeclares com.sun.nio.sctp.Notification.association.

Returns the association that this notification is applicable to.

public abstract AssociationChangeNotification.AssocChangeEvent

Returns:

The event
event
()

Returns the type of change event.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AssociationChangeNotificationback to summary
protected AssociationChangeNotification()

Initializes a new instance of this class.

Method Detail

associationback to summary
public abstract Association association()

Redeclares com.sun.nio.sctp.Notification.association.

Returns the association that this notification is applicable to.

Returns:Association

The association whose state has changed, or null if there is no association, that is CANT_START

eventback to summary
public abstract AssociationChangeNotification.AssocChangeEvent event()

Returns the type of change event.

Returns:AssociationChangeNotification.AssocChangeEvent

The event

com.sun.nio.sctp back to summary

public final Enum AssociationChangeNotification.AssocChangeEvent

extends Enum<AssociationChangeNotification.AssocChangeEvent>
Class Inheritance

Defines the type of change event that happened to the association.
Since
1.7

Field Summary

Modifier and TypeField and Description
public static final AssociationChangeNotification.AssocChangeEvent
CANT_START

The association failed to setup.

public static final AssociationChangeNotification.AssocChangeEvent
COMM_LOST

The association has failed.

public static final AssociationChangeNotification.AssocChangeEvent
COMM_UP

A new association is now ready and data may be exchanged with this peer.

public static final AssociationChangeNotification.AssocChangeEvent
RESTART

SCTP has detected that the peer has restarted.

public static final AssociationChangeNotification.AssocChangeEvent
SHUTDOWN

The association has gracefully closed.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static AssociationChangeNotification.AssocChangeEvent
public static AssociationChangeNotification.AssocChangeEvent[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

CANT_STARTback to summary
public static final AssociationChangeNotification.AssocChangeEvent CANT_START

The association failed to setup. If a message was sent on a SctpMultiChannel in non-blocking mode, an SCTP send failed notification will follow this notification for the outstanding message.

COMM_LOSTback to summary
public static final AssociationChangeNotification.AssocChangeEvent COMM_LOST

The association has failed. A series of SCTP send failed notifications will follow this notification, one for each outstanding message.

COMM_UPback to summary
public static final AssociationChangeNotification.AssocChangeEvent COMM_UP

A new association is now ready and data may be exchanged with this peer.

RESTARTback to summary
public static final AssociationChangeNotification.AssocChangeEvent RESTART

SCTP has detected that the peer has restarted.

SHUTDOWNback to summary
public static final AssociationChangeNotification.AssocChangeEvent SHUTDOWN

The association has gracefully closed.

Constructor Detail

AssocChangeEventback to summary
private AssocChangeEvent()

Method Detail

valueOfback to summary
public static AssociationChangeNotification.AssocChangeEvent valueOf(String name)
valuesback to summary
public static AssociationChangeNotification.AssocChangeEvent[] values()