APIdia Launch Partner
Top Description Fields Constructors Methods
sun.nio.ch.sctp

public Class SendFailed

extends SendFailedNotification
implements SctpNotification
Class Inheritance
All Implemented Interfaces
sun.nio.ch.sctp.SctpNotification, com.sun.nio.sctp.Notification
Imports
java.nio.ByteBuffer, java.net.SocketAddress, com.sun.nio.sctp.Association, .SendFailedNotification

An implementation of SendFailedNotification

Field Summary

Modifier and TypeField and Description
private final SocketAddress
private Association
private final int
private final ByteBuffer
private final int
private final int

Constructor Summary

AccessConstructor and Description
private
SendFailed(int assocId, SocketAddress address, ByteBuffer buffer, int errorCode, int streamNumber)

Method Summary

Modifier and TypeMethod and Description
public SocketAddress
address()

Implements abstract com.sun.nio.sctp.SendFailedNotification.address.

Returns the address.

public Association
association()

Implements abstract com.sun.nio.sctp.SendFailedNotification.association.

Implements com.sun.nio.sctp.Notification.association.

Returns the association that this notification is applicable to.

public int
public ByteBuffer
buffer()

Implements abstract com.sun.nio.sctp.SendFailedNotification.buffer.

Returns the data that was to be sent.

public int
errorCode()

Implements abstract com.sun.nio.sctp.SendFailedNotification.errorCode.

Returns the error code.

public void
public int
streamNumber()

Implements abstract com.sun.nio.sctp.SendFailedNotification.streamNumber.

Returns the stream number that the message was to be sent on.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Field Detail

addressback to summary
private final SocketAddress address
associationback to summary
private Association association
assocIdback to summary
private final int assocId
bufferback to summary
private final ByteBuffer buffer
errorCodeback to summary
private final int errorCode
streamNumberback to summary
private final int streamNumber

Constructor Detail

SendFailedback to summary
private SendFailed(int assocId, SocketAddress address, ByteBuffer buffer, int errorCode, int streamNumber)

Method Detail

addressback to summary
public SocketAddress address()

Implements abstract com.sun.nio.sctp.SendFailedNotification.address.

Doc from com.sun.nio.sctp.SendFailedNotification.address.

Returns the address.

Annotations
@Override
associationback to summary
public Association association()

Implements abstract com.sun.nio.sctp.SendFailedNotification.association.

Implements com.sun.nio.sctp.Notification.association.

Doc from com.sun.nio.sctp.Notification.association.

Returns the association that this notification is applicable to.

Annotations
@Override
assocIdback to summary
public int assocId()

Implements sun.nio.ch.sctp.SctpNotification.assocId.

Annotations
@Override
bufferback to summary
public ByteBuffer buffer()

Implements abstract com.sun.nio.sctp.SendFailedNotification.buffer.

Doc from com.sun.nio.sctp.SendFailedNotification.buffer.

Returns the data that was to be sent.

Annotations
@Override
errorCodeback to summary
public int errorCode()

Implements abstract com.sun.nio.sctp.SendFailedNotification.errorCode.

Doc from com.sun.nio.sctp.SendFailedNotification.errorCode.

Returns the error code.

The errorCode gives the reason why the send failed, and if set, will be a SCTP protocol error code as defined in RFC2960 section 3.3.10

Annotations
@Override
setAssociationback to summary
public void setAssociation(Association association)

Implements sun.nio.ch.sctp.SctpNotification.setAssociation.

Annotations
@Override
streamNumberback to summary
public int streamNumber()

Implements abstract com.sun.nio.sctp.SendFailedNotification.streamNumber.

Doc from com.sun.nio.sctp.SendFailedNotification.streamNumber.

Returns the stream number that the message was to be sent on.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override