Package network.aika.callbacks
Interface SuspensionCallback
- All Known Implementing Classes:
FSSuspensionCallback
,InMemorySuspensionCallback
public interface SuspensionCallback
The suspension hook is used to suspend neurons to an external storage in order to reduce the memory footprint.
!!! Important: When using the suspension hook, all references to a neuron need to occur through a
provider. Otherwise the reference might be outdated.
- Author:
- Lukas Molzberger
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
long
createId()
getIdByLabel
(String label) void
void
open()
void
void
void
void
removeLabel
(String label) byte[]
void
void
-
Method Details
-
prepareNewModel
- Throws:
IOException
-
open
- Throws:
IOException
-
close
- Throws:
IOException
-
createId
long createId() -
store
- Throws:
IOException
-
remove
- Throws:
IOException
-
retrieve
- Throws:
IOException
-
getAllIds
Collection<Long> getAllIds() -
getIdByLabel
-
putLabel
-
removeLabel
-
loadIndex
-
saveIndex
- Throws:
IOException
-