Module methanol.testing
Class RedisClusterSession
java.lang.Object
com.github.mizosoft.methanol.testing.store.RedisClusterSession
- All Implemented Interfaces:
RedisSession
,AutoCloseable
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
boolean
Returnstrue
if this session is operable.logFiles()
Returns the log files attached to this session.boolean
reset()
Resets this session to its initial state.static RedisClusterSession
start
(int masterCount, int replicasPerMaster) toString()
List
<io.lettuce.core.RedisURI> uris()
-
Method Details
-
uris
-
logFiles
Description copied from interface:RedisSession
Returns the log files attached to this session.- Specified by:
logFiles
in interfaceRedisSession
-
reset
public boolean reset()Description copied from interface:RedisSession
Resets this session to its initial state. Returnstrue
if the session is operable after being reset.- Specified by:
reset
in interfaceRedisSession
-
isHealthy
public boolean isHealthy()Description copied from interface:RedisSession
Returnstrue
if this session is operable.- Specified by:
isHealthy
in interfaceRedisSession
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceRedisSession
- Throws:
IOException
-
toString
-
start
- Throws:
IOException
-