public int estimateSize ( Codec codec ) { int size = key . length + 1 ; //key + control if ( ! ControlByte . NON_EXISTING . hasFlag ( control ) && ! ControlByte . NOT_READ . hasFlag ( control ) ) { size += 8 ; //long } if ( ! ControlByte . REMOVE_OP . hasFlag ( control ) ) { size += value . length ; size += codec . estimateExpirationSize ( lifespan , lifespanTimeUnit , maxIdle , maxIdleTimeUnit ) ; } return size ; }
The estimated size .