Package de.esoco.coroutine
Class CoroutineEvent
- java.lang.Object
-
- de.esoco.lib.event.GenericEvent<Continuation<?>>
-
- de.esoco.coroutine.CoroutineEvent
-
- All Implemented Interfaces:
de.esoco.lib.event.Event<Continuation<?>>
public class CoroutineEvent extends de.esoco.lib.event.GenericEvent<Continuation<?>>
The event object for coroutine events.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCoroutineEvent.EventTypeThe available event types.
-
Constructor Summary
Constructors Constructor Description CoroutineEvent(Continuation<?> continuation, CoroutineEvent.EventType type)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CoroutineEvent.EventTypegetType()Returns the event type.protected java.lang.StringparamString()
-
-
-
Constructor Detail
-
CoroutineEvent
public CoroutineEvent(Continuation<?> continuation, CoroutineEvent.EventType type)
Creates a new instance.- Parameters:
continuation- The continuation of the coroutine executiontype- The event type
-
-
Method Detail
-
getType
public CoroutineEvent.EventType getType()
Returns the event type.- Returns:
- The event type
-
paramString
protected java.lang.String paramString()
- Overrides:
paramStringin classde.esoco.lib.event.GenericEvent<Continuation<?>>
-
-