Class Subscription

  • Direct Known Subclasses:
    SubscriptionClock, SubscriptionIO

    public class Subscription
    extends java.lang.Object
    This class represent a Wasi subscription event.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static byte CLOCK  
      static byte FD_READ  
      static byte FD_WRITE  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Subscription​(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 of Subscription.
      long getUserData()
      Gets the user data
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Subscription

        protected Subscription​(long userdata)
    • 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 of Subscription.
        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