Module agentforge4j.runtime
Class InMemoryWorkflowFileRepository
java.lang.Object
com.agentforge4j.runtime.repository.InMemoryWorkflowFileRepository
- All Implemented Interfaces:
WorkflowFileRepository
In-memory
WorkflowFileRepository keyed by WorkflowFile.fileId().-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindByRunId(String runId) Returns all files associated withrunId, possibly empty.findByRunIdAndFileId(String runId, String fileId) Returns one file when both ids match an existing row or object.voidsave(WorkflowFile file) Inserts or replacesfilein the backing store.
-
Constructor Details
-
InMemoryWorkflowFileRepository
public InMemoryWorkflowFileRepository()Creates an empty repository.
-
-
Method Details
-
save
Description copied from interface:WorkflowFileRepositoryInserts or replacesfilein the backing store.- Specified by:
savein interfaceWorkflowFileRepository
-
findByRunId
Description copied from interface:WorkflowFileRepositoryReturns all files associated withrunId, possibly empty.- Specified by:
findByRunIdin interfaceWorkflowFileRepository- Parameters:
runId- non-null run identifier understood by the implementation
-
findByRunIdAndFileId
Description copied from interface:WorkflowFileRepositoryReturns one file when both ids match an existing row or object.- Specified by:
findByRunIdAndFileIdin interfaceWorkflowFileRepository- Parameters:
runId- owning run idfileId- file id scoped to that run
-