public static short obtain() {
    return (short) uigen.obtain();
  }
Obtains a message id. Callers of this must call release when finished with the id.

@throws IllegalStateException if all ids have been obtained
geode-core/src/main/java/org/apache/geode/internal/tcp/MsgIdGenerator.java