#NEWLINE# def capacity( self ) : #NEWLINE# #INDENT# if ( not self . _capacity ) : #NEWLINE# #INDENT# def cache_capacity( f ) : #NEWLINE# #INDENT# self . _capacity = f . result ( ) #NEWLINE# return f . result ( ) #NEWLINE# #UNINDENT# return self . _encode_invoke ( ringbuffer_capacity_codec ) . continue_with ( cache_capacity ) #NEWLINE# #UNINDENT# return ImmediateFuture ( cache_capacity . _capacity )