T - the type of the new value.public interface MonitorNotificationService<T>
extends java.lang.AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Brings this service to a state where it has disposed of its resources.
|
void |
init()
Brings this service to a state where it is ready to process new publication requests.
|
boolean |
publish(java.nio.ByteBuffer dataBuffer,
TypeSupports.TypeSupport<T> typeSupport,
int dataCount)
Publishes a new value to a monitor's subscriber using a value that must
first be deserialized from the supplied data buffer.
|
boolean |
publish(T value)
Publishes a new value to a monitor's subscriber (which this library models as
a Java Consumer) using the value that is directly supplied.
|
boolean publish(java.nio.ByteBuffer dataBuffer,
TypeSupports.TypeSupport<T> typeSupport,
int dataCount)
dataBuffer - the byte buffer containing the new value (which must
first be deserialized).typeSupport - reference to an object which has the capability of
deserializing the information in the byte buffer.dataCount - the number of items in the buffer to be deserialized.boolean publish(T value)
value - the new value.void init()
void close()
close in interface java.lang.AutoCloseable