Class TemporaryMemoryOllamaEndpoint
java.lang.Object
com.developer.nefarious.zjoule.plugin.login.memory.TemporaryMemoryOllamaEndpoint
- All Implemented Interfaces:
ITemporaryMemoryObject
,IMemoryObject<String>
public class TemporaryMemoryOllamaEndpoint
extends Object
implements IMemoryObject<String>, ITemporaryMemoryObject
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
static void
initialize
(IEclipseMemory eclipseMemory) isEmpty()
Checks if the stored data is empty or invalid.load()
Loads the data from memory.void
persist()
Persists the temporary memory object to permanent storage.static void
void
Saves the given data to memory.
-
Field Details
-
KEY
- See Also:
-
-
Method Details
-
getInstance
-
initialize
-
resetInstance
public static void resetInstance() -
isEmpty
Description copied from interface:IMemoryObject
Checks if the stored data is empty or invalid.- Specified by:
isEmpty
in interfaceIMemoryObject<String>
- Returns:
true
if the stored data is empty or invalid;false
otherwise.
-
load
Description copied from interface:IMemoryObject
Loads the data from memory.- Specified by:
load
in interfaceIMemoryObject<String>
- Returns:
- the stored object of type
T
, ornull
if no data is found or loading fails.
-
persist
public void persist()Description copied from interface:ITemporaryMemoryObject
Persists the temporary memory object to permanent storage.- Specified by:
persist
in interfaceITemporaryMemoryObject
-
save
Description copied from interface:IMemoryObject
Saves the given data to memory.- Specified by:
save
in interfaceIMemoryObject<String>
- Parameters:
ollamaEndpoint
- the object of typeT
to save.
-
clear
public void clear()- Specified by:
clear
in interfaceIMemoryObject<String>
-