Package network.aika.callbacks
Class InMemorySuspensionCallback
java.lang.Object
network.aika.callbacks.InMemorySuspensionCallback
- All Implemented Interfaces:
SuspensionCallback
- Author:
- Lukas Molzberger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
long
createId()
getIdByLabel
(String label) void
void
open()
void
void
void
void
removeLabel
(String label) byte[]
void
void
-
Constructor Details
-
InMemorySuspensionCallback
public InMemorySuspensionCallback()
-
-
Method Details
-
prepareNewModel
public void prepareNewModel()- Specified by:
prepareNewModel
in interfaceSuspensionCallback
-
open
- Specified by:
open
in interfaceSuspensionCallback
- Throws:
IOException
-
close
- Specified by:
close
in interfaceSuspensionCallback
- Throws:
IOException
-
createId
public long createId()- Specified by:
createId
in interfaceSuspensionCallback
-
store
- Specified by:
store
in interfaceSuspensionCallback
-
remove
- Specified by:
remove
in interfaceSuspensionCallback
-
putLabel
- Specified by:
putLabel
in interfaceSuspensionCallback
-
removeLabel
- Specified by:
removeLabel
in interfaceSuspensionCallback
-
retrieve
- Specified by:
retrieve
in interfaceSuspensionCallback
-
getIdByLabel
- Specified by:
getIdByLabel
in interfaceSuspensionCallback
-
getAllIds
- Specified by:
getAllIds
in interfaceSuspensionCallback
-
loadIndex
- Specified by:
loadIndex
in interfaceSuspensionCallback
-
saveIndex
- Specified by:
saveIndex
in interfaceSuspensionCallback
-