public class PageBuffer
extends java.lang.Object
Constructor and Description |
---|
PageBuffer()
Creates an empty page buffer
|
Modifier and Type | Method and Description |
---|---|
void |
addPageToBuffer(PageInBuffer page)
Adds the page to the buffer.
|
PageInBuffer |
getBufferPageFor(java.lang.String module,
java.lang.String action,
int hashcode,
int size)
gets from the buffer the page with the matching properties
|
long |
getTotalBufferSize()
This method is used to display the total size of the buffer.
|
void |
writeBufferedPages(java.lang.String actionmodule,
java.lang.String actionname,
MessageWriter writer)
writes a description of all pages in the buffer for the given module and
action, in a way that can be understood by the Open Lowcode server
|
public PageInBuffer getBufferPageFor(java.lang.String module, java.lang.String action, int hashcode, int size)
module
- name of the moduleaction
- name of the actionhashcode
- hashcode of the page sourcesize
- size of the page sourcepublic void addPageToBuffer(PageInBuffer page)
page
- the page to be addedpublic void writeBufferedPages(java.lang.String actionmodule, java.lang.String actionname, MessageWriter writer) throws java.io.IOException
actionmodule
- name of the actionactionname
- name of the modulewriter
- writer to put elements tojava.io.IOException
- if any communication issue happenspublic long getTotalBufferSize()