You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ideal solution would be to have the UuidGenerator return a supplier instance that keeps the state internally.
public interface UuidGenerator {
Supplier<UUID> supplier();
}
And then have the UuidGeneratorServiceLoader return that supplier only for the selected generator. Fortunately the UuidGenerator is experimental so I don't feel too bad about breaking the contract. But I'd rather avoid doing that on a patch version.
The ideal solution would be to have the
UuidGenerator
return a supplier instance that keeps the state internally.And then have the
UuidGeneratorServiceLoader
return that supplier only for the selected generator. Fortunately theUuidGenerator
is experimental so I don't feel too bad about breaking the contract. But I'd rather avoid doing that on a patch version.Originally posted by @mpkorstanje in #2931 (comment)
The text was updated successfully, but these errors were encountered: