Top Description Methods
org.glassfish.grizzly.asyncqueue

public Interface WritableMessage

Known Direct Subinterfaces
org.glassfish.grizzly.Buffer, org.glassfish.grizzly.FileChunk

Common interface for entities that may be written to a java.nio.channels.Channel.
Since
2.2

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if this message has data remaining to be written.
hasRemaining
()

Return true if this message has data remaining to be written.

public boolean

Returns:

False, if the message is located in memory (like org.glassfish.grizzly.Buffer).
isExternal
()

Returns true if the message represents an external resource (for example org.glassfish.grizzly.FileTransfer), which is not loaded in memory.

public boolean

Returns:

true if successfully released
release
()

Perform message specific actions to release resources held by the entity backing this WritableMessage.

public int

Returns:

the number of bytes remaining to be written.
remaining
()

Return the number of bytes remaining to be written.

Method Detail

hasRemainingback to summary
public boolean hasRemaining()

Return true if this message has data remaining to be written.

Returns:boolean

true if this message has data remaining to be written.

isExternalback to summary
public boolean isExternal()

Returns true if the message represents an external resource (for example org.glassfish.grizzly.FileTransfer), which is not loaded in memory.

Returns:boolean

False, if the message is located in memory (like org.glassfish.grizzly.Buffer).

releaseback to summary
public boolean release()

Perform message specific actions to release resources held by the entity backing this WritableMessage.

Returns:boolean

true if successfully released

remainingback to summary
public int remaining()

Return the number of bytes remaining to be written.

Returns:int

the number of bytes remaining to be written.