AMPS C# Client  5.3.5.0
AMPS C# Client for .NET
AMPS.Client.PublishStoreResizeHandler Interface Reference

Interface used to indicate whether a Store implementation is allowed to grow (or shrink) to the requested size. If the request to resize is denied, a Store implementation may fail the operation that resulted in the request to grow by throwing an exception. More...

Public Member Functions

bool invoke (Store store, long size)
 Called by the Store when it wants to attempt a resize. Rather than allow a resize request to grow the store, and implementation could choose to flush the store (to allow space to be freed up) at the expense of publishing performance. If the store's unpersisted count doesn't decrease after a flush times out, it could indicate the client is disconnected or a server-side issue such as a synchronous replication destination is down. More...
 

Detailed Description

Interface used to indicate whether a Store implementation is allowed to grow (or shrink) to the requested size. If the request to resize is denied, a Store implementation may fail the operation that resulted in the request to grow by throwing an exception.

Member Function Documentation

◆ invoke()

bool AMPS.Client.PublishStoreResizeHandler.invoke ( Store  store,
long  size 
)

Called by the Store when it wants to attempt a resize. Rather than allow a resize request to grow the store, and implementation could choose to flush the store (to allow space to be freed up) at the expense of publishing performance. If the store's unpersisted count doesn't decrease after a flush times out, it could indicate the client is disconnected or a server-side issue such as a synchronous replication destination is down.

Parameters
storeThe store sending the resize request.
sizeThe new size the store would like to resize to.
Returns
A boolean indicating whether the Store is allowed to resize or not.

The documentation for this interface was generated from the following file: