Package ej.wasi.io.event
Class Subscription
- java.lang.Object
-
- ej.wasi.io.event.Subscription
-
- Direct Known Subclasses:
SubscriptionClock,SubscriptionIO
public class Subscription extends Object
This class represent a Wasi subscription event.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSubscription(long userdata)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Subscription[]deserialize(byte[] memory, int ptr, int nbSubscription)De-serialize the subscription events in the memory an return them as an array ofSubscription.longgetUserData()Gets the user data
-
-
-
Field Detail
-
CLOCK
public static final byte CLOCK
- See Also:
- Constant Field Values
-
FD_READ
public static final byte FD_READ
- See Also:
- Constant Field Values
-
FD_WRITE
public static final byte FD_WRITE
- See Also:
- Constant Field Values
-
-
Method Detail
-
deserialize
public static Subscription[] deserialize(byte[] memory, int ptr, int nbSubscription)
De-serialize the subscription events in the memory an return them as an array ofSubscription.- Parameters:
memory- the memory from which to read the subscription event.ptr- the start pointer in the memory.nbSubscription- the number subscription to read.- Returns:
- the de-serialized subscription events array
-
getUserData
public long getUserData()
Gets the user data- Returns:
- the user data
-
-