Class HeartbeatModule
- java.lang.Object
-
- de.unistuttgart.isw.sfsc.commonjava.heartbeating.HeartbeatModule
-
- All Implemented Interfaces:
NotThrowingAutoCloseable,java.lang.AutoCloseable
public class HeartbeatModule extends java.lang.Object implements NotThrowingAutoCloseable
-
-
Method Summary
Modifier and Type Method Description voidclose()static HeartbeatModulecreate(PubSubConnection pubSubConnection, java.util.concurrent.ScheduledExecutorService scheduledExecutorService, HeartbeatParameter heartbeatParameter)voidstartSession(java.lang.String remoteId, com.google.protobuf.ByteString remoteTopic, java.util.function.Consumer<java.lang.String> onDeceive)
-
-
-
Method Detail
-
create
public static HeartbeatModule create(PubSubConnection pubSubConnection, java.util.concurrent.ScheduledExecutorService scheduledExecutorService, HeartbeatParameter heartbeatParameter)
-
startSession
public void startSession(java.lang.String remoteId, com.google.protobuf.ByteString remoteTopic, java.util.function.Consumer<java.lang.String> onDeceive)
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceNotThrowingAutoCloseable
-
-