sec buffers and buffer pools secondary storage (on diskmain memory (in ram figure an illustration of virtual memory the complete collection of information resides in the slowersecondary storage (on diskthose sectors recently accessed are held in the fast main memory (in ramin this examplecopies of sectors and from secondary storage are currently stored in the main memory if memory access to sector is receivedone of the sectors currently in main memory must be replaced the buffer pool class itself the first approach is to pass "messagesbetween the two this approach is illustrated by the following abstract class/*adt for buffer pools using the message-passing style *public interface bufferpooladt /*copy "szbytes from "spaceto position "posin the buffered storage *public void insert(byte[spaceint szint pos)/*copy "szbytes from position "posof the buffered storage to "space*public void getbytes(byte[spaceint szint pos)this simple class provides an interface with two member functionsinsert and getbytes the information is passed between the buffer pool user and the buffer pool through the space parameter this is storage spaceprovided by the bufferpool client and at least sz bytes longwhich the buffer pool can take information from (the insert functionor put information into (the getbytes functionparameter pos indicates where the information will be placed in the