@ CheckForNull private Object executeSyncMethod ( Method method , Object [ ] args ) throws ApplicationException { if ( preparingForShutdown . get ( ) ) { throw new JoynrIllegalStateException ( "Preparing for shutdown. Only stateless methods can be called." ) ; } return executeMethodWithCaller ( method , args , new ConnectorCaller ( ) { @ Override public Object call ( Method method , Object [ ] args ) throws ApplicationException { return connector . executeSyncMethod ( method , args ) ; } } ) ; }
executeSyncMethod is called whenever a method of the synchronous interface which is provided by the proxy is called . The ProxyInvocationHandler will check the arbitration status before the call is delegated to the connector . If the arbitration is still in progress the synchronous call will block until the arbitration was successful or the timeout elapsed .