Class Heartbeater
java.lang.Object
org.komamitsu.fluency.fluentd.ingester.sender.heartbeat.Heartbeater
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
InetSocketHeartbeater
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()intprotected abstract voidinvoke()protected voidping()protected voidpong()voidsetCallback(Heartbeater.Callback callback) voidstart()toString()
-
Constructor Details
-
Heartbeater
-
-
Method Details
-
start
public void start() -
invoke
- Throws:
IOException
-
ping
protected void ping() -
pong
protected void pong() -
setCallback
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
getIntervalMillis
public int getIntervalMillis() -
toString
-