Class KQueueStaticallyReferencedJniMethods


  • final class KQueueStaticallyReferencedJniMethods
    extends java.lang.Object
    This class is necessary to break the following cyclic dependency:
    1. JNI_OnLoad
    2. JNI Calls FindClass because RegisterNatives (used to register JNI methods) requires a class
    3. FindClass loads the class, but static members variables of that class attempt to call a JNI method which has not yet been registered.
    4. java.lang.UnsatisfiedLinkError is thrown because native method has not yet been registered.
    Static members which call JNI methods must not be declared in this class!
    • Constructor Detail

      • KQueueStaticallyReferencedJniMethods

        private KQueueStaticallyReferencedJniMethods()
    • Method Detail

      • evAdd

        static short evAdd()
      • evEnable

        static short evEnable()
      • evDisable

        static short evDisable()
      • evDelete

        static short evDelete()
      • evClear

        static short evClear()
      • evEOF

        static short evEOF()
      • evError

        static short evError()
      • noteReadClosed

        static short noteReadClosed()
      • noteConnReset

        static short noteConnReset()
      • noteDisconnected

        static short noteDisconnected()
      • evfiltRead

        static short evfiltRead()
      • evfiltWrite

        static short evfiltWrite()
      • evfiltUser

        static short evfiltUser()
      • evfiltSock

        static short evfiltSock()
      • connectResumeOnReadWrite

        static int connectResumeOnReadWrite()
      • connectDataIdempotent

        static int connectDataIdempotent()
      • fastOpenClient

        static int fastOpenClient()
      • fastOpenServer

        static int fastOpenServer()