protected final Object execute ( MethodCall < ? > methodCall ) throws Exception { if ( ! running . get ( ) ) { throw new IllegalStateException ( "Cannot write to a closed service client" ) ; } try { return invokeRequest ( methodCall ) ; } catch ( ServerException e ) { throw e . thriftException ; } }
When invoked by a derived instance sends the given call to the server .