public interface NetChannelOutput<T> extends ChannelOutput<T>, Networked
The only method that this interface defines is asyncSend. This is considered a dangerous method to use, and careful consideration must be taken. The inclusion of asyncSend is to provide the impression of a simple infinitely buffered networked channel, without having to create extra buffers beyond what the channel uses.
ChannelOutput
,
Networked
,
NetChannel
Modifier and Type | Method and Description |
---|---|
void |
asyncWrite(T obj)
Sends a message to the input end of the channel asynchronously (no blocking)
|
void |
setEncoder(NetworkMessageFilter.FilterTx encoder)
Sets the underlying encoder for the channel
|
write
poison
destroy, getLocation
void asyncWrite(T obj) throws JCSPNetworkException, NetworkPoisonException
obj
- The object to send to the input endJCSPNetworkException
- Thrown if something goes wrong in the underlying architectureNetworkPoisonException
- Thrown if the channel is poisonedvoid setEncoder(NetworkMessageFilter.FilterTx encoder)
encoder
- The encoder to use for the channel.Copyright © 1996–2021. All rights reserved.