public InMemoryMessageExchangeStore(final NetworkConfig config,TokenProvider tokenProvider){
  if (config == null) {
    throw new NullPointerException("Configuration must not be null");
  }
  if (tokenProvider == null) {
    throw new NullPointerException("TokenProvider must not be null");
  }
  this.tokenProvider=tokenProvider;
  this.config=config;
}

public InMemoryMessageExchangeStore ( final NetworkConfig config , TokenProvider tokenProvider ) { if ( config == null ) { throw new NullPointerException ( "Configuration must not be null" ) ; } if ( tokenProvider == null ) { throw new NullPointerException ( "TokenProvider must not be null" ) ; } this . tokenProvider = tokenProvider ; this . config = config ; }
creates a new store for configuration values .
