Class GlideScopeResolver


  • public class GlideScopeResolver
    extends java.lang.Object
    Native method declarations for isolated execution.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int glideScopeAcquire​(long clientId, byte[] connectionRequestBytes, boolean hasRoutingSlot, int routingSlot, long timeoutMs, long callbackId)
      Acquire a scope, completing the future registered under callbackId with the scope id as a Long, or exceptionally with the error the core classified.
      static int glideScopeExecute​(long scopeId, byte[] commandBytes, long callbackId)  
      static int glideScopeRelease​(long scopeId, long clientId)  
      • Methods inherited from class java.lang.Object

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

      • GlideScopeResolver

        public GlideScopeResolver()
    • Method Detail

      • glideScopeAcquire

        public static int glideScopeAcquire​(long clientId,
                                            byte[] connectionRequestBytes,
                                            boolean hasRoutingSlot,
                                            int routingSlot,
                                            long timeoutMs,
                                            long callbackId)
        Acquire a scope, completing the future registered under callbackId with the scope id as a Long, or exceptionally with the error the core classified. The core owns the wait, so one call covers the whole acquire.
        Parameters:
        hasRoutingSlot - whether routingSlot is a caller-supplied slot; when false the slot is ignored and a cluster scope is left unconstrained (any primary)
        Returns:
        0 once queued; -2 if the connection request bytes could not be read, in which case the future is never completed by the native side
      • glideScopeRelease

        public static int glideScopeRelease​(long scopeId,
                                            long clientId)
      • glideScopeExecute

        public static int glideScopeExecute​(long scopeId,
                                            byte[] commandBytes,
                                            long callbackId)