Top Description Methods
org.glassfish.grizzly

public Interface Writeable<L>

extends OutputSink
Known Direct Subinterfaces
org.glassfish.grizzly.Connection
Annotations
@SuppressWarnings:deprecation
Imports
java.util.concurrent.Future

Implementations of this interface are able to write data from a Buffer. Grizzly Connection extends Writeable.
Author
Alexey Stashok

Method Summary

Modifier and TypeMethod and Description
public <
type of data to be written
M
>
GrizzlyFuture<WriteResult<M, L>>

Returns:

Future, using which it's possible to check the result
write
(M
the buffer, from which the data will be written
message
)

Method writes the buffer.

public <
type of data to be written
M
>
void
write(M
the buffer, from which the data will be written
message
,
CompletionHandler<WriteResult<M, L>>
CompletionHandler, which will get notified, when write will be completed
completionHandler
)

Method writes the buffer.

public <
type of data to be written
M
>
void
write(M
the buffer, from which the data will be written
message
,
CompletionHandler<WriteResult<M, L>>
CompletionHandler, which will get notified, when write will be completed
completionHandler
,
PushBackHandler
org.glassfish.grizzly.asyncqueue.PushBackHandler, which will be notified if message was accepted by transport write queue or refused
pushbackHandler
)
Deprecated push back logic is deprecated

Method writes the buffer.

public <
type of data to be written
M
>
void
write(L
the destination address the buffer will be sent to
dstAddress
,
M
the buffer, from which the data will be written
message
,
CompletionHandler<WriteResult<M, L>>
CompletionHandler, which will get notified, when write will be completed
completionHandler
)

Method writes the buffer to the specific address.

public <
type of data to be written
M
>
void
write(L
the destination address the buffer will be sent to
dstAddress
,
M
the buffer, from which the data will be written
message
,
CompletionHandler<WriteResult<M, L>>
CompletionHandler, which will get notified, when write will be completed
completionHandler
,
PushBackHandler
org.glassfish.grizzly.asyncqueue.PushBackHandler, which will be notified if message was accepted by transport write queue or refused
pushbackHandler
)
Deprecated push back logic is deprecated

Method writes the buffer to the specific address.

Inherited from org.glassfish.grizzly.OutputSink:
canWritecanWritenotifyCanWritenotifyCanWrite

Method Detail

writeback to summary
public <M> GrizzlyFuture<WriteResult<M, L>> write(M message)

Method writes the buffer.

Parameters
<M>
type of data to be written
message:M

the buffer, from which the data will be written

Returns:GrizzlyFuture<WriteResult<M, L>>

Future, using which it's possible to check the result

writeback to summary
public <M> void write(M message, CompletionHandler<WriteResult<M, L>> completionHandler)

Method writes the buffer.

Parameters
<M>
type of data to be written
message:M

the buffer, from which the data will be written

completionHandler:CompletionHandler<WriteResult<M, L>>

CompletionHandler, which will get notified, when write will be completed

writeback to summary
public <M> void write(M message, CompletionHandler<WriteResult<M, L>> completionHandler, PushBackHandler pushbackHandler)

Deprecated

push back logic is deprecated

Method writes the buffer.

Parameters
<M>
type of data to be written
message:M

the buffer, from which the data will be written

completionHandler:CompletionHandler<WriteResult<M, L>>

CompletionHandler, which will get notified, when write will be completed

pushbackHandler:PushBackHandler

org.glassfish.grizzly.asyncqueue.PushBackHandler, which will be notified if message was accepted by transport write queue or refused

Annotations
@Deprecated
writeback to summary
public <M> void write(L dstAddress, M message, CompletionHandler<WriteResult<M, L>> completionHandler)

Method writes the buffer to the specific address.

Parameters
<M>
type of data to be written
dstAddress:L

the destination address the buffer will be sent to

message:M

the buffer, from which the data will be written

completionHandler:CompletionHandler<WriteResult<M, L>>

CompletionHandler, which will get notified, when write will be completed

writeback to summary
public <M> void write(L dstAddress, M message, CompletionHandler<WriteResult<M, L>> completionHandler, PushBackHandler pushbackHandler)

Deprecated

push back logic is deprecated

Method writes the buffer to the specific address.

Parameters
<M>
type of data to be written
dstAddress:L

the destination address the buffer will be sent to

message:M

the buffer, from which the data will be written

completionHandler:CompletionHandler<WriteResult<M, L>>

CompletionHandler, which will get notified, when write will be completed

pushbackHandler:PushBackHandler

org.glassfish.grizzly.asyncqueue.PushBackHandler, which will be notified if message was accepted by transport write queue or refused

Annotations
@Deprecated