code: public void setQueryable(String queryableStateName) {
  		Preconditions.checkArgument(
  			ttlConfig.getUpdateType() == StateTtlConfig.UpdateType.Disabled,
  			"Queryable state is currently not supported with TTL");
  		if (this.queryableStateName == null) {
  			this.queryableStateName = Preconditions.checkNotNull(queryableStateName, "Registration name");
  		} else {
  			throw new IllegalStateException("Queryable state name already set");
  		}
  	}
docs: Sets the name for queries of state created from this descriptor.
  
  <p>If a name is set, the created state will be published for queries
  during runtime. The name needs to be unique per job. If there is another
  state instance published under the same name, the job will fail during runtime.
  
  @param queryableStateName State name for queries (unique name per job)
  @throws IllegalStateException If queryable state name already set