Package de.esoco.coroutine.step
Class ChannelStep<I,O>
- java.lang.Object
-
- org.obrel.core.RelatedObject
-
- de.esoco.coroutine.CoroutineStep<I,O>
-
- de.esoco.coroutine.step.ChannelStep<I,O>
-
- All Implemented Interfaces:
de.esoco.lib.property.Fluent<CoroutineStep<I,O>>,org.obrel.core.FluentRelatable<CoroutineStep<I,O>>,org.obrel.core.Relatable
- Direct Known Subclasses:
ChannelReceive,ChannelSend
public abstract class ChannelStep<I,O> extends CoroutineStep<I,O>
A base class for coroutine steps that performChanneloperations.
-
-
Constructor Summary
Constructors Constructor Description ChannelStep(java.util.function.Function<Continuation<?>,ChannelId<O>> fGetChannelId)Creates a new instance that operates on a channel the ID of which is provided by a certain function that will be applied to the continuation of an execution.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Channel<O>getChannel(Continuation<?> rContinuation)Returns the channel this step operates on.-
Methods inherited from class de.esoco.coroutine.CoroutineStep
execute, runAsync, runBlocking, terminateCoroutine, toString
-
Methods inherited from class org.obrel.core.RelatedObject
deleteRelation, get, getRelation, getRelations, notifyRelationListeners, readRelations, relationsEqual, relationsHashCode, relationsString, set, set, transform, writeRelations
-
-
-
-
Constructor Detail
-
ChannelStep
public ChannelStep(java.util.function.Function<Continuation<?>,ChannelId<O>> fGetChannelId)
Creates a new instance that operates on a channel the ID of which is provided by a certain function that will be applied to the continuation of an execution.- Parameters:
fGetChannelId- The function that will return the channel ID
-
-
Method Detail
-
getChannel
public Channel<O> getChannel(Continuation<?> rContinuation)
Returns the channel this step operates on.- Parameters:
rContinuation- The current continuation- Returns:
- The channel
-
-