Package org.kie.remote.impl
Class RemoteEntryPointImpl
- java.lang.Object
-
- org.kie.remote.impl.AbstractRemoteEntryPoint
-
- org.kie.remote.impl.RemoteEntryPointImpl
-
- All Implemented Interfaces:
RemoteEntryPoint,RemoteWorkingMemory
- Direct Known Subclasses:
RemoteKieSessionImpl
public class RemoteEntryPointImpl extends AbstractRemoteEntryPoint implements RemoteEntryPoint
-
-
Field Summary
Fields Modifier and Type Field Description protected RemoteStatefulSessionImpldelegate-
Fields inherited from class org.kie.remote.impl.AbstractRemoteEntryPoint
entryPoint, sender, topicsConfig
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRemoteEntryPointImpl(Sender sender, String entryPoint, TopicsConfig topicsConfig, Listener listener)protectedRemoteEntryPointImpl(Sender sender, String entryPoint, TopicsConfig topicsConfig, RemoteStatefulSessionImpl delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> voiddelete(RemoteFactHandle<T> handle)Retracts the fact for which the given FactHandle was assigned regardless if it has been explicitly or logically inserted.protected Map<String,CompletableFuture<Object>>getRequestsStore()<T> RemoteFactHandle<T>insert(T obj)Inserts a new fact into this entry point<T> voidupdate(RemoteFactHandle<T> handle, T object)Updates the fact for which the given FactHandle was assigned with the new fact set as the second parameter in this method.-
Methods inherited from class org.kie.remote.impl.AbstractRemoteEntryPoint
executeCommand, getEntryPointId, getFactCount, getObject, getObjects, getObjects, getObjects
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.kie.remote.RemoteWorkingMemory
getEntryPointId, getFactCount, getObject, getObjects, getObjects, getObjects
-
-
-
-
Field Detail
-
delegate
protected final RemoteStatefulSessionImpl delegate
-
-
Constructor Detail
-
RemoteEntryPointImpl
protected RemoteEntryPointImpl(Sender sender, String entryPoint, TopicsConfig topicsConfig, Listener listener)
-
RemoteEntryPointImpl
protected RemoteEntryPointImpl(Sender sender, String entryPoint, TopicsConfig topicsConfig, RemoteStatefulSessionImpl delegate)
-
-
Method Detail
-
insert
public <T> RemoteFactHandle<T> insert(T obj)
Description copied from interface:RemoteEntryPointInserts a new fact into this entry point- Specified by:
insertin interfaceRemoteEntryPoint- Parameters:
obj- the fact to be inserted- Returns:
- the fact handle created for the given fact
-
delete
public <T> void delete(RemoteFactHandle<T> handle)
Description copied from interface:RemoteEntryPointRetracts the fact for which the given FactHandle was assigned regardless if it has been explicitly or logically inserted.- Specified by:
deletein interfaceRemoteEntryPoint- Parameters:
handle- the handle whose fact is to be retracted.
-
update
public <T> void update(RemoteFactHandle<T> handle, T object)
Description copied from interface:RemoteEntryPointUpdates the fact for which the given FactHandle was assigned with the new fact set as the second parameter in this method.- Specified by:
updatein interfaceRemoteEntryPoint- Parameters:
handle- the FactHandle for the fact to be updated.object- the new value for the fact being updated.
-
getRequestsStore
protected Map<String,CompletableFuture<Object>> getRequestsStore()
- Specified by:
getRequestsStorein classAbstractRemoteEntryPoint
-
-