Class MemoryConfiguration
java.lang.Object
com.github.copilot.rpc.MemoryConfiguration
Configuration for session memory.
Controls whether the session can read and write persistent memory.
- Since:
- 1.6.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets whether memory is enabled for the session.setEnabled(boolean enabled) Sets whether memory is enabled for the session.
-
Constructor Details
-
MemoryConfiguration
public MemoryConfiguration()
-
-
Method Details
-
getEnabled
public boolean getEnabled()Gets whether memory is enabled for the session.- Returns:
trueif memory is enabled,falseotherwise
-
setEnabled
Sets whether memory is enabled for the session.- Parameters:
enabled-trueto enable memory,falseto disable- Returns:
- this config for method chaining
-