Class AbstractRemoteEntryPoint

    • Field Detail

      • sender

        protected final Sender sender
      • entryPoint

        protected final String entryPoint
    • Constructor Detail

      • AbstractRemoteEntryPoint

        public AbstractRemoteEntryPoint​(Sender sender,
                                        String entryPoint,
                                        TopicsConfig topicsConfig)
    • Method Detail

      • getObjects

        public CompletableFuture<Collection> getObjects()
        Description copied from interface: RemoteWorkingMemory

        This class is not a general-purpose Collection implementation! While this class implements the Collection interface, it intentionally violates Collection general contract, which mandates the use of the equals method when comparing objects.

        Instead the approach used when comparing objects with the contains(Object) method is dependent on the WorkingMemory configuration, where it can be configured for Identity or for Equality.

        Specified by:
        getObjects in interface RemoteWorkingMemory
        Returns:
        CompletableFuture of Collection to read all facts from the current session as a Collection.
      • getObjects

        public <T> CompletableFuture<Collection<T>> getObjects​(Class<T> clazztype)
        Specified by:
        getObjects in interface RemoteWorkingMemory
        Parameters:
        clazztype - the filter to be applied to the returned collection of facts.
        Returns:
        CompletableFuture of Collection to read all facts from the current session that are accepted by the given ObjectFilter.
      • getObjects

        public CompletableFuture<Collection> getObjects​(String namedQuery,
                                                        String objectName,
                                                        Serializable... params)
        Specified by:
        getObjects in interface RemoteWorkingMemory
        Parameters:
        namedQuery - the filter to be applied to the returned collection of facts.
        objectName - name of the object to read from the QueryResultsRow
        params - for the rule
        Returns:
        CompletableFuture of Collection to read all facts from the current session that are accepted by the given ObjectFilter.