/** * Change the default garbage collection interval. * * @param millis The new garbage collection interval, in milliseconds. */ public void setGCInterval(long millis) { router.sendMessage(CorfuMsgType.GC_INTERVAL.payloadMsg(millis)); }
/** Force the garbage collector to begin garbage collection. */ public void forceGC() { router.sendMessage(CorfuMsgType.FORCE_GC.msg()); }
/** Force the compactor to recalculate the contiguous tail. */ public void forceCompact() { router.sendMessage(CorfuMsgType.FORCE_COMPACT.msg()); }
/** * Send a hint to the logging unit that a stream can be trimmed. * * @param stream The stream to trim. * @param prefix The prefix of the stream, as a global physical offset, to trim. */ public void trim(UUID stream, long prefix) { router.sendMessage(CorfuMsgType.TRIM.payloadMsg(new TrimRequest(stream, prefix))); }