public abstract class AbstractTcpReaderStage<T> extends AbstractProducerStage<T>
outputPortlogger| Constructor and Description |
|---|
AbstractTcpReaderStage(int port,
int bufferCapacity) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
execute()
Contains the logic of this stage and is invoked (possibly multiple times) by the framework.
|
protected abstract boolean |
read(ByteBuffer buffer) |
getOutputPort, getTerminationStrategyabort, addInputPortRemovedListener, addOutputPortRemovedListener, compareAndSetBeingExecuted, createInputPort, createInputPort, createInputPort, createInputPort, createOutputPort, createOutputPort, createOutputPort, createOutputPort, declareActive, declarePassive, executeByFramework, getCurrentState, getId, getInputPorts, getOutputPorts, getOwningThread, isActive, isBeingExecuted, isPaused, isProducer, isStateless, onSignal, onStarting, onTerminating, onValidating, removeDynamicPort, removeDynamicPort, setPaused, setStateless, shouldBeTerminated, signalAlreadyReceived, terminateStage, toString, workCompletedpublic AbstractTcpReaderStage(int port,
int bufferCapacity)
protected void execute()
AbstractStageexecute in class AbstractStageprotected abstract boolean read(ByteBuffer buffer)
buffer - to be read fromtrue when there were enough bytes to perform the read operation
false otherwise. In this case, the buffer is reset, compacted, and filled with new content.
Copyright © 2015–2020. All rights reserved.