
com.sap.cloud.alert.notification.client.ICustomerResourceEventBuffer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clm-sl-alert-notification-client Show documentation
Show all versions of clm-sl-alert-notification-client Show documentation
Means for out-of-the-box events management in SAP Alert Notification service for SAP BTP service.
package com.sap.cloud.alert.notification.client;
import com.sap.cloud.alert.notification.client.exceptions.BufferOverflowException;
import com.sap.cloud.alert.notification.client.model.CustomerResourceEvent;
import java.util.UUID;
public interface ICustomerResourceEventBuffer {
/**
* Return the buffer capacity
*
* @return the number of events that could be kept simultaneously in the buffer
*/
int getCapacity();
/**
* Read and remove an event from the buffer
*
* @param eventUuid the event identifier that was given on putting in the queue
* @return the event itself that was read and removed from the buffer
*/
CustomerResourceEvent read(UUID eventUuid);
/**
* Put a new event in the buffer
*
* @param event the event to be stored in the buffer
* @return the unique identifier assigned to the event on putting into the buffer
* @throws BufferOverflowException if the buffer queue is full
*/
UUID write(CustomerResourceEvent event) throws BufferOverflowException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy