private void rebuild ( ) { pollact = null ; pollSize = pollers . size ( ) ; if ( pollset != null ) { pollset . close ( ) ; } pollset = context . poller ( pollSize ) ; assert ( pollset != null ) ; pollact = new SPoller [ pollSize ] ; int itemNbr = 0 ; for ( SPoller poller : pollers ) { pollset . register ( poller . item ) ; pollact [ itemNbr ] = poller ; itemNbr ++ ; } dirty = false ; }
activity on pollers . Returns 0 on success - 1 on failure .