This lick is very famous and very abused, the "Bebop lick" named so by David Baker in his book "How to play Bebop".
Once you play it you´ll probably recognize hearing it a lot, especially in sax and trumpet solos from the Bebop era.
Charlie Parker used it, and so did Dizzy Gillespie, Bud Powell, Sonny Rollins, Etc.
I haven´t heard it so much in a Gypsy Jazz setting except by guys like Biréli Lagrène, and the more eclectic players.
It works over dominant 9 chords, starting on the root, and also starting on the fifth of the chord, you can drop the ninth ( A in this case) down an octave or you can substitute it for the root.
It can be used as the beginning of a longer phrase, the ending or in the middle.
Feel free to experiment with different fingerings and sets of string and make sure you practice this lick in ALL keys, so it can materialize in the "heat of the battle" without sounding too much like a plug-in phrase.
Hope you like it!