public class StripedExecutorServiceMonitorNotificationService<T> extends java.lang.Object implements MonitorNotificationService<T>
| 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.
|
public boolean publish(java.nio.ByteBuffer dataBuffer,
TypeSupports.TypeSupport<T> typeSupport,
int dataCount)
publish in interface MonitorNotificationService<T>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.public boolean publish(T value)
publish in interface MonitorNotificationService<T>value - the new value.public void init()
init in interface MonitorNotificationService<T>public void close()
close in interface java.lang.AutoCloseableclose in interface MonitorNotificationService<T>