com.neeve.aep
Interface IAepEnvironmentProvider.BufferManager

Enclosing interface:
IAepEnvironmentProvider

public static interface IAepEnvironmentProvider.BufferManager

Represents an interface to a environment provider's buffer manager

The AEP engine manages the buffers to which the environment providers record information to be replicated. This interface represents the buffer manager that manages those buffers. The primary service offered by a buffer manager to an environment provider is the ability to resize the buffer in the event of an overflow.


Method Summary
 ByteBuffer resize(int size)
          Request the buffer manager to resize the buffer
 

Method Detail

resize

ByteBuffer resize(int size)
Request the buffer manager to resize the buffer

Parameters:
size - The new buffer size.

The user should invoke this method to resize a buffer supplied to it for recording via the onTransactionStart method. The buffer supplied by onTransactionStart has a position marker set to the point where the provider should start recording data. The remaining bytes in the buffer (limit-pos) dictates the amount of space available for data recording. This method should be invoked if the remaining space runs short of the provider's need. The method increases the amount of remaining space in the buffer to at least the value specified in the size parameter. Note that this means that the size parameter should contain the new desired value for the remaining space and not the buffer capacity.



Copyright © 2016 Neeve Research, LLC. All Rights Reserved.