model Names
Lists the models the endpoint serves.
An interrupted caller gets a CancellationException. That is a subclass of IllegalStateException, so catch it first if you catch IllegalStateException, or the interrupt is lost.
Return
the model names in the order the endpoint lists them
Throws
if the endpoint can't be reached or its listing can't be read
if the caller or key supplier is interrupted