Class CallbackRegistry
- java.lang.Object
-
- de.unistuttgart.isw.sfsc.commonjava.registry.CallbackRegistry
-
- All Implemented Interfaces:
NotThrowingAutoCloseable,java.lang.AutoCloseable
public class CallbackRegistry extends java.lang.Object implements NotThrowingAutoCloseable
-
-
Constructor Summary
Constructors Constructor Description CallbackRegistry()
-
Method Summary
Modifier and Type Method Description voidaddCallback(int id, java.util.function.Consumer<com.google.protobuf.ByteString> consumer, int timeoutMs, java.lang.Runnable timeoutRunnable)voidclose()voidperformCallback(int id, com.google.protobuf.ByteString byteString)
-
-
-
Method Detail
-
addCallback
public void addCallback(int id, java.util.function.Consumer<com.google.protobuf.ByteString> consumer, int timeoutMs, java.lang.Runnable timeoutRunnable)
-
performCallback
public void performCallback(int id, com.google.protobuf.ByteString byteString)
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceNotThrowingAutoCloseable
-
-