public class OutputChannel extends Channel
envelopeDispatcher| Constructor and Description |
|---|
OutputChannel(OutputGate outputGate,
int index,
ChannelID id,
ChannelID connectedId,
ChannelType type)
Creates a new output channel object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
JobID |
getJobID() |
boolean |
isClosed() |
boolean |
isInputChannel() |
void |
queueEnvelope(Envelope envelope) |
void |
releaseAllResources() |
void |
requestClose() |
void |
sendBuffer(Buffer buffer) |
void |
sendBufferAndEvent(Buffer buffer,
AbstractEvent event) |
void |
sendEvent(AbstractEvent event) |
void |
transferEvent(AbstractEvent event) |
void |
waitForChannelToBeClosed() |
getChannelType, getConnectedId, getID, getIndex, registerEnvelopeDispatcherpublic OutputChannel(OutputGate outputGate, int index, ChannelID id, ChannelID connectedId, ChannelType type)
outputGate - the output gate this channel is connected toindex - the index of the channel in the output gateid - the ID of the channelconnectedId - the ID of the channel this channel is connected totype - the type of this channelpublic void sendBuffer(Buffer buffer) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void sendEvent(AbstractEvent event) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void sendBufferAndEvent(Buffer buffer, AbstractEvent event) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void queueEnvelope(Envelope envelope)
queueEnvelope in class Channelpublic void requestClose()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void waitForChannelToBeClosed()
throws InterruptedException
InterruptedExceptionpublic boolean isInputChannel()
isInputChannel in class Channelpublic void transferEvent(AbstractEvent event) throws IOException, InterruptedException
transferEvent in class ChannelIOExceptionInterruptedExceptionpublic void releaseAllResources()
releaseAllResources in class ChannelCopyright © 2014 The Apache Software Foundation. All rights reserved.