public abstract class AbstractNativeChannel extends BlockingNativeCallableUnit
For I/O APIs to work it requires each I/O source (file,tcp socket) to return a generic ByteChannel.
This will prepare the ByteChannel to perform I/O operations.
OpenFile| Constructor and Description |
|---|
AbstractNativeChannel() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(Context context) |
abstract Channel |
inFlow(Context context)
Defines the set of actions which should be performed to created a byte channel.
|
execute, isBlockingpublic abstract Channel inFlow(Context context) throws BallerinaException
Defines the set of actions which should be performed to created a byte channel.
context - holds the context received from Ballerina.BallerinaExceptionpublic void execute(Context context)
execute in class BlockingNativeCallableUnitCopyright © 2018 WSO2. All rights reserved.