public class BufferWriter extends Object
| Modifier and Type | Field and Description |
|---|---|
protected OutputGate |
outputGate |
| Constructor and Description |
|---|
BufferWriter(AbstractInvokable invokable) |
| Modifier and Type | Method and Description |
|---|---|
void |
broadcastBuffer(Buffer buffer) |
void |
broadcastEvent(AbstractEvent event) |
void |
sendBuffer(Buffer buffer,
int targetChannel) |
void |
sendBufferAndEvent(Buffer buffer,
AbstractEvent event,
int targetChannel) |
void |
sendEndOfSuperstep() |
void |
sendEvent(AbstractEvent event,
int targetChannel) |
void |
subscribeToEvent(EventListener eventListener,
Class<? extends AbstractTaskEvent> eventType) |
void |
unsubscribeFromEvent(EventListener eventListener,
Class<? extends AbstractTaskEvent> eventType) |
protected final OutputGate outputGate
public BufferWriter(AbstractInvokable invokable)
public void sendBuffer(Buffer buffer, int targetChannel) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void sendEvent(AbstractEvent event, int targetChannel) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void sendBufferAndEvent(Buffer buffer, AbstractEvent event, int targetChannel) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void broadcastBuffer(Buffer buffer) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void broadcastEvent(AbstractEvent event) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void subscribeToEvent(EventListener eventListener, Class<? extends AbstractTaskEvent> eventType)
public void unsubscribeFromEvent(EventListener eventListener, Class<? extends AbstractTaskEvent> eventType)
public void sendEndOfSuperstep()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionCopyright © 2014 The Apache Software Foundation. All rights reserved.