Package io.sisu.nng.aio
Class Context.Work
- java.lang.Object
-
- io.sisu.nng.aio.Context.Work
-
- Enclosing class:
- Context
public static class Context.Work extends java.lang.Object
A unit of asynchronous work awaiting completion. Effectively a container for state while the Context waits for the AioCallback to fire.
-
-
Field Summary
Fields Modifier and Type Field Description Context.Event
event
java.util.concurrent.CompletableFuture<java.lang.Object>
future
Message
msg
-
Constructor Summary
Constructors Constructor Description Work(Context.Event event, java.util.concurrent.CompletableFuture<java.lang.Object> future)
-
-
-
Field Detail
-
event
public final Context.Event event
-
future
public final java.util.concurrent.CompletableFuture<java.lang.Object> future
-
msg
public Message msg
-
-
Constructor Detail
-
Work
public Work(Context.Event event, java.util.concurrent.CompletableFuture<java.lang.Object> future)
-
-