Class Portal

  • All Implemented Interfaces:
    ResultCursor

    class Portal
    extends java.lang.Object
    implements ResultCursor
    V3 ResultCursor implementation in terms of backend Portals. This holds the state of a single Portal. We use a PhantomReference managed by our caller to handle resource cleanup.
    • Field Detail

      • portalName

        private final java.lang.String portalName
      • encodedName

        private final byte[] encodedName
      • cleanupRef

        private java.lang.ref.PhantomReference<?> cleanupRef
    • Constructor Detail

      • Portal

        Portal​(SimpleQuery query,
               java.lang.String portalName)
    • Method Detail

      • close

        public void close()
        Description copied from interface: ResultCursor
        Close this cursor. This may not immediately free underlying resources but may make it happen more promptly. Closed cursors should not be passed to QueryExecutor methods.
        Specified by:
        close in interface ResultCursor
      • getPortalName

        java.lang.String getPortalName()
      • getEncodedPortalName

        byte[] getEncodedPortalName()
      • setCleanupRef

        void setCleanupRef​(java.lang.ref.PhantomReference<?> cleanupRef)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object